Hi All,
i have a file in which i wanna a grep the word which contains .txt
suppose in a script i user abc.txt for 10 times.when i use grep or other command it has to give me one line output ie., abc.txt
Any idea from anyone.
Thanks
Hi All,
i have a file in which i wanna a grep the word which contains .txt
suppose in a script i user abc.txt for 10 times.when i use grep or other command it has to give me one line output ie., abc.txt
Any idea from anyone.
Thanks
Maybe something like this?
grep '\.txt' file |sort -u
Regards
Thanks Franklin52. It worked for me.