1

How to export the string to a text file.

view story
linux-howto

http://www.unix.com – Hi, I have used this Code: find . -type f -exec grep "491629461544"  {} \; > test.txt to find the string and export it to file. The problem is, when i used the above command in Shell script, the file is created but the searched string is recursively written in that file and even the file size exceeds 1 GB. so, how to write the obtained string only once in newly created file. Please Suggest me. (HowTos)