As the title would refer, I need a script to be able to read different lines and display the contents of each line.
For example; file "prop"
would be required from a script along the lines of
Code:
echo "====[ $(pwd) ]=====" #show what server it is
echo "server will run with $(cat prop;line1) of memory" #obviously not going to actually work but thats the concept
echo "server will run with jar file $(cat prop;line2)" #same comment as before
Before anyone asks, the 3G part is the memory the server will be started with and (obviously) the server.jar file is the actual server, which is written in Java.
Hope it's doable.