View Single Post
Old 01-17-2006, 01:26 PM   #3 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,166
Belisarius is on a distinguished road
The head/tail way is really the only way to do it with a conventional shell script. You can do shell-scripting with Perl and PHP, you might want consider using one of those if you're going to be parsing a file. I combine both shell-scripts and PHP scripts for my system-admin work.
__________________
GitS
Belisarius is offline   Reply With Quote