hi,
#cat /u01/file|grep -v "^#"|cut -f2 -d: -s
i want to avoid repeated lines from the output of the above command.
Do we have anyting like unique in shell scripting.
thx
hi,
#cat /u01/file|grep -v "^#"|cut -f2 -d: -s
i want to avoid repeated lines from the output of the above command.
Do we have anyting like unique in shell scripting.
thx
Hi, see man uniq
Try this.......
uniq test1.txt
thank u
Useless use of cat .. Useless Use of Cat Award
To customize ..
$ nawk -F: '!/^#/ {print $2|"uniq"}' /etc/oratab
/u01/oracle/db1