Posts Tagged With: bash

Run a Command if Another Command Succeeds

Tagged with: , , , , , , ,

This will let you run a linux command based on the success of anther command. Note: This will only work in bash shell.


ruby Create_PDF.rb && if [ $? == 0 ]; then kpdf report.pdf; fi
No Comments »

Remove CVS Information from a Folder

Tagged with: , , , , , ,

find -name CVS -exec rm -rf {} \;

NOTE: Works only with bash

No Comments »