10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
in a directory, I have some files(comma seperated) and some .gz files (each .gz file contain one file which again is comma seperated).
I want to search and write the names of all those files which contain any particular value (say 1150) at any specified field position(say 10th field).
How di I do... (1 Reply)
Discussion started by: Kumar Jivi
2. Shell Programming and Scripting
I am having a file like this
##################### (3 Replies)
Discussion started by: jaita
3. Shell Programming and Scripting
I have a list of pattern in a file, I want each of these pattern been searched from 4 files. I was wondering this can be done in SED / AWK.
say my 4 files to be searched are
> cat f1
> cat f2
abc 2... (6 Replies)
Discussion started by: novice_man
4. Shell Programming and Scripting
I have a situation where I need to search for multiple strings (error messages) such as 'aborted' 'file not found' etc in directory having logs. I have put all the error messages in a text file and using the command.
grep -f <textfile> <filetobegrepped>
I'm doing this thru a script where I... (5 Replies)
Discussion started by: bornon2303
5. Shell Programming and Scripting
I have a file say for ex. file1 which has 3500 lines in it which are different account numbers and another file (file2) which has 230000 lines in it. I want to read all the lines in file1 and delete all those lines from file2 which has that same pattern as in file1. I am not quite... (4 Replies)
Discussion started by: toms
6. Shell Programming and Scripting
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
# check if the user has... (1 Reply)
Discussion started by: Shazin
7. Shell Programming and Scripting
i have to search a pattern in all the files in all subfolders that are present in current directory.
suppose i am in d1 directory and in that sd1,sd2,sd3 are subdirectories.
sd1 i have files f1,f2
sd2 i have files f3,f4
sd3 i have file f5
i have to list out all those... (4 Replies)
Discussion started by: ravi.sadani19
8. Shell Programming and Scripting
I want to delete lines like this
but I would like to *not* delete the second match, i.e. the TO_HERE line. How can I achieve this?
Thank you! (1 Reply)
Discussion started by: Ilja
9. UNIX for Dummies Questions & Answers
I would like to search for files containing certain string pattern under all the directories under /vobs/vobname and print the output to a file in my home directory. How can I do this?
Note: /vobs/vobname conatins several directories.
Thank You in advance
newbetounix (1 Reply)
Discussion started by: intrigue
10. Shell Programming and Scripting
I have a problem in searching a specific pattern in c files.
I have to find all the division operator in all cfiles.
The problem is, the multi line comments and single line comments will also have forward slash in it.
Even after avoiding these comments also, if both... (6 Replies)
Discussion started by: murthybptl