Re: bash scripting help

2007-09-13 Thread chitti
NF == 0 || $1 ~ /^#/ {next} > $2 ~ /\/tcp$/ {print > "services.tcp"; next} > $2 ~ /\/udp$/ {print > "services.udp"; next} > {print > "services.other"}' < /etc/services > > > -- > Stéphane > > > > --

Re: bash scripting help

2007-09-12 Thread Stephane CHAZELAS
2007-09-12, 10:00(-07), chitti: > > I need to seperate the UDP and TCP ports from the /etc/services files. > any pointers or help on scripting this in bash would be helpful > thanks awk ' NF == 0 || $1 ~ /^#/ {next} $2 ~ /\/tcp$/ {print > "services.tcp"; next} $2 ~ /\/udp$/ {print > "service

Re: bash scripting help

2007-09-12 Thread Bob Proulx
chitti wrote: > I need to seperate the UDP and TCP ports from the /etc/services files. > any pointers or help on scripting this in bash would be helpful Open ended questions such as that are not the greatest way to get going. It is better if you read one of the many tutorials and howtos that are

bash scripting help

2007-09-12 Thread chitti
I need to seperate the UDP and TCP ports from the /etc/services files. any pointers or help on scripting this in bash would be helpful thanks -- View this message in context: http://www.nabble.com/bash-scripting-help-tf4430729.html#a12639912 Sent from the Gnu - Bash mailing list archive at