10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
name$count = some dynamic value
now i want to use dat dynamic value in grep so how m i supposed to do dat
i tried
`grep $(name$count) source`
, it is not working ......
what will be after grep so dat i will be... (4 Replies)
Discussion started by: Gl@)!aTor
4 Replies
2. Shell Programming and Scripting
Hi all,
Need help to seek string with dynamic value that always change?
Example string
JOB_WORK_STAFF_MARY_JANE_20111013_000000001.DAT
"JOB_WORK_STAFF_" and "_20111013_000000001.DAT" is static length.
How do I select the "MARY_JANE" in the middle of the string.
Please advice.
... (5 Replies)
Discussion started by: shadow_max85
5 Replies
3. Shell Programming and Scripting
Experts,
Hi there.
Feel like kicking myself today as I wish I could have paid more attention to learning while I was in college. If only wishes were horses ....
Anyway, Im parsing the contents of a log file.
Now what I need to do here is search for a pattern and then Pick the top 3... (6 Replies)
Discussion started by: OMLEELA
6 Replies
4. Shell Programming and Scripting
Hi all,
I just want to find all values that are in a specified interval. I tryed it with grep e- file , it does not work.
Is it possible to get values wich are lower a special number, like grep >e-18 file?
Thanks a lot (4 Replies)
Discussion started by: newcommer
4 Replies
5. Shell Programming and Scripting
Hi all,
I have some data in the form of
adc|nvhs|nahssn|njadnk|nkfds
in the above data i need to write a script so thet it will append "|||" to the third occurnace in the string ..... the outout should look like
adc|nvhs|nahssn||||njadnk|nkfds
Thanks,
Firestar. (6 Replies)
Discussion started by: firestar
6 Replies
6. Shell Programming and Scripting
I am making a script but having little problem. at one part I need to find one number format or other format from a file..
those formats are xxx-xx-xxxx or xxxxxxxxx
i tried
grep '( \{3\}-\{2\}-\{3\} |\{9\})'
if i do them sepratly it work but like this it is not working
Please check... (7 Replies)
Discussion started by: Learnerabc
7 Replies
7. Shell Programming and Scripting
Hi,
i have a file called alert_pindb.log i need to grep and count for all the lines starting with "ORA-" but i need to exclude the line which is having "ORA-00600
"
i am using following syntax to count the ORA- nos
"grep \"ORA-\" alert_pindb.log | wc -l";
since ORA- may be anything... (9 Replies)
Discussion started by: prakash.gr
9 Replies
8. Shell Programming and Scripting
Hi,
Need to extract a string from one file and search the same in other files.
Ex:
I have file1 of hundred lines with no delimiters not even space.
I have 3 more files.
I should get 1 to 10 characters say substring from each line of file1 and search that string in rest of the files and get... (1 Reply)
Discussion started by: mohancrr
1 Replies
9. Shell Programming and Scripting
Hi,
I really need some help with GREP searching...
I need to find all occurances of a file reference and remove two characters from the end of the reference. For example, here are a few lines showing the text:
<image file="STRAIGHT_004CR.jpg" ALT="STRAIGHT_004CR.jpg" />
<image... (8 Replies)
Discussion started by: steveglevin
8 Replies
10. Shell Programming and Scripting
ppl,
this is my "file" with fields
orderno orderdate orderdesc telno street city
1 01/04/2006 abc 123 100 tampa
2 01/04/2006 abc 123 100 tampa
3 01/04/2006 abc 123 100 tampa
4 01/04/2006 abc ... (2 Replies)
Discussion started by: manthasirisha
2 Replies