acid_kewpie |
10-04-2006 02:48 PM |
easier?? :confused: it's certianly a lot nicer without all those full stops in it.. yuck!
really not sure what you mean by easier.. it looks like it does the job. if i were writing somethign to do the same job, i'd be storing the hostname output to a variable so i don't keep calling it i guess. in fact you could put the whole lot of echos and rap into ()'s and just redirect the whole output in one swoop at the end...
Code:
( echo 1
echo 2
echo 3 ) > file.txt
additionally many of your echo's are redundant where you have two next to each other, just stick a \n in there instead of two seperate commands.
hm.. maybe i DO know what you mean...
|