Search Results

Search: Posts Made By: gopikrish81
2,109
Posted By gopikrish81
Thank you ! And one more question - I...
Thank you !

And one more question -

I need to search for lines having the string "exec_error" but not having the strings "Web site/page/script" and "Illegal loop"

For eg from below log...
2,109
Posted By gopikrish81
Searching for a pattern between 2 semicolons
I have logs which is having strings like below,

errorMsg;;
errorMsg;bad input;

so I need to grep from logs file which searches for errorMsg followed by semicolon followed by any text and then...
3,244
Posted By gopikrish81
Ok thank you ! I will try again :)
Ok thank you ! I will try again :)
3,244
Posted By gopikrish81
Yes I tested it. Instead of displaying p3.ul,...
Yes I tested it. Instead of displaying p3.ul, j3.ul, r3.ul alone from audio.txt file, it is displaying all the file names present in audio.txt
p1.ul
p2.ul
p3.ul
j1.ul
j2.ul
j3.ul
r1.ul
r2.ul...
3,244
Posted By gopikrish81
grep -vFf <(find /root/audios -type f -name...
grep -vFf <(find /root/audios -type f -name '*.ul' | sed 's/.*\///') /root/audios/audio.txt


Both the above approaches of code are giving audio file names which are present from audio.txt in...
3,244
Posted By gopikrish81
My bad, I framed the question little wrongly. I...
My bad, I framed the question little wrongly. I need the reverse scenario.

And little correction below as well,

Inside those pop, jazz, rock folders there are following files,
p1.ul, p2.ul,...
3,244
Posted By gopikrish81
But hereyou have used Instead of hardcoding...
But hereyou have used
Instead of hardcoding the filenames, is it possible to read them one by one from audio.txt and loop rather? Because there are many more files then I mentioned and its hard...
3,244
Posted By gopikrish81
Script to list files not present in audio.txt file
I am having following folder structure.

/root/audios/pop
/root/audios/jazz
/root/audios/rock

Inside those pop, jazz, rock folders there are following files,
p1.ul, p2.ul, p3.ul, j1.ul,...
8,607
Posted By gopikrish81
Sorry for confusion... Here is sample ... ...
Sorry for confusion... Here is sample ...

ucid.txt file has following contents...
abc-123
abc-124
bcd-234
etc...

pw_logs.txt has following contents..
12-Jun-11 Log abc-123 Tim xyzfgh...
8,607
Posted By gopikrish81
Grepping a file contents into another file
I have a file named as ucid.txt
It has multiple rows of "id". I need to search and grep each line of it from a file named as pw_logs.txt and put the results into another file.

Please help !...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 09:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy