~johanvandegriff/unix-shell-programming-revised-edition-programs

unix-shell-programming-revised-edition-programs/ncat -rw-r--r-- 102 bytes
fc214385Johan Vandegriff added other old scripts, some newer ones too 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
#!/bin/sh
lineno=1

cat "$@" |
while read line
do
echo "$lineno:$line"
lineno=`expr $lineno + 1`
done