10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a log file that generates multiple logs about a query.
<query time='2016-04-13 13:01:50.825'>
... (3 Replies)
Discussion started by: Junaid Subhani
2. Shell Programming and Scripting
I wish to search for and output these patterns in order;
"From " "To: " "Subject: " "Message-Id: " "Date: " "To: "
grep works, but not in strict order...
$ grep -a -E "^From |^Subject:|^From: |^Message-Id: |^Date: |^To: " InboxResult;
From - Wed Feb 18... (10 Replies)
Discussion started by: DSommers
3. Shell Programming and Scripting
I have many test*.ft1 files to which I want to read as input for a script called
pipe2txt.tcl and print the output in each separate file.
pipe2txt.tcl < test001.ft1 > test001.txt
How can I read many files in this maner?
thank you very much,
Pahuja (5 Replies)
Discussion started by: Pahuja
4. Shell Programming and Scripting
Need help to grep the following from a file x. I just want to grep exact match not lines and not partial word.
xczxczxczc zczczcxx CONFSUCCESS czczczcczc
czxxczxzxczcczc CONFFAIL xczxczcxcczczc
zczczczcz CONFPARTIALSUCCESS czczxcxzc
... (4 Replies)
Discussion started by: rajeshwebspere
5. Shell Programming and Scripting
I need to parse a file and depending on a patern match(in the insert job line) separate files have to be created with a line added (content in file2).
Mapping for pattern match and add line :
for Alpha 123
for Beta 234
for Gamma 345
no match (goes into another file)
File 1 ... (3 Replies)
Discussion started by: w020637
6. Shell Programming and Scripting
I have sql file containing lot of queries on different database table. I have to filter specific table queries.
Let say i need all queries of test1,test2,test3 along with four lines above it and sql queries can be multi lines or in single line.
Input file contains.
set... (1 Reply)
Discussion started by: mirfan
7. Shell Programming and Scripting
My requiremeny is as follows,
I have two files
A BONES RD,NHILL,3418,VIC
37TH PARALLEL RD,DEEP LEAD,3385,VIC
4 AK RD,OAKEY,4401,QLD
A & J FARRS RD,BARMOYA,4703,QLD
A B PATTERSON DR,ARUNDEL,4214,QLD
A BLAIRS RD,BUCKRABANYULE,3525,VIC
A BONES... (12 Replies)
Discussion started by: feelmyfrd
8. UNIX for Dummies Questions & Answers
i have one file ,i need to search particular word from this file and if content is matched then echo MATCHED else NOT MATCHED
file contains : mr x planned to score 75% in exam but end up with 74%.
word to be searched id 75%
please help me out .
waiting for reply
thanks in advance (2 Replies)
Discussion started by: atl@mav
9. UNIX for Dummies Questions & Answers
How do I use grep to find a pattern in a list of file and then display 5 lines after the pattern is matched
I want to match the string GetPresentCode in all files in a folder and then see 4 lines following this match. I am not sure if grep is what should be used to achieve. Thanks!... (3 Replies)
Discussion started by: cv_pan
10. Shell Programming and Scripting
I have few text templates
as a simple ex:
I wish to grep on given text file and make sure the text file matches one of these templates. Please give your ideas. (6 Replies)
Discussion started by: rider29