Sunday, March 25, 2012

"Batch" files in Unix

If you're coming from a Windows background here's how to do a simple "batch" file in Unix

Create the batch file with:

Write a line into the batch file. Use an editor for longer files obviously.
echo "java -version" >

Make it executable
chmod +x

To run the file: