Dev @ SEA
Software solutions.
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:
touch jv.sh
Write a line into the batch file. Use an editor for longer files obviously.
echo "java -version" > jv.sh
Make it executable
chmod +x jv.sh
To run the file:
bash jv.sh
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)