File: read_services.sh

package info (click to toggle)
tiger 2.2.4-22
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,188 kB
  • ctags: 240
  • sloc: sh: 8,388; ansic: 2,109; makefile: 141; perl: 106
file content (6 lines) | stat: -rw-r--r-- 138 bytes parent folder | download
1
2
3
4
5
6
#!/bin/sh
/bin/cat /etc/services | grep -v ^# | 
while read service type other other2
do
	[ ! -z "$service" ] && echo $service $type
done