jf2014
Technical User
- Jun 29, 2014
- 4
Dear all,
I am using Oracle Solaris.
I would like to accomplish the following.
1. I would like to search files names and move the search contents of the all files returned in the search to another text file. All the files should be clubbed one after another in a single file.
Example.
grep filename.* (this will give me all files. I want to combine the all files to a single text file). How can I accomplish this ?
2. I would like to now search inside the files and move all the files matching the search to a specific directory.
Example.
grep "PO#" filename.* (this will search all filenames with the specific PO value and the result should be moved to ../mydir/
Thank you for your help.
JF
I am using Oracle Solaris.
I would like to accomplish the following.
1. I would like to search files names and move the search contents of the all files returned in the search to another text file. All the files should be clubbed one after another in a single file.
Example.
grep filename.* (this will give me all files. I want to combine the all files to a single text file). How can I accomplish this ?
2. I would like to now search inside the files and move all the files matching the search to a specific directory.
Example.
grep "PO#" filename.* (this will search all filenames with the specific PO value and the result should be moved to ../mydir/
Thank you for your help.
JF