10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field.
The source file is pipe delimited and looks something like
1|net|R_North|1123|||... (5 Replies)
Discussion started by: Mudshark
2. Shell Programming and Scripting
I have a simple text file having payment amount value on each line. At the end of day 'n' number of payments created difference in amount that I need to match from this file.
I have information about how many payments created difference and difference amount. Please help me to build shell... (3 Replies)
Discussion started by: swats007
3. Shell Programming and Scripting
I have a string
I want to remove the entry containing the varp tag (The varp is followed by a number)
I want to get
pawlu-donje-seru-drw.msf (3 Replies)
Discussion started by: kristinu
4. Shell Programming and Scripting
I have one input file with the following content:
Aname1 Cname1 Cname2 1808 5
Aname2 Cname1 1802 47
Bname1 ? 1819 22
Bname2 Cname1 1784 11
Bname3 1817 9
Zname1 Cname1 1805 59
Zname2 Cname1 Cname2 Cname3 1797 27
Every line in my input file have a 4 digit... (5 Replies)
Discussion started by: Szaffy
5. Shell Programming and Scripting
I have requirement to find nth occurrence in a file and capture data from with in lines (between lines)
Data in File.
<ATTRIBUTE NAME='Parameter Filename' VALUE='file1.parm'/>
<ATTRIBUTE NAME='Service Name' VALUE='None'/>
<ATTRIBUTE... (6 Replies)
Discussion started by: tmalik79
6. Shell Programming and Scripting
Please tell me how can I Find a string using grep & print the line above or below that in solaris?
Please share as I am unable to use grep -A or grep -B as it is not working on Solaris. (10 Replies)
Discussion started by: Zaib
7. Shell Programming and Scripting
Hi,I am new to shell scripting and i want to find the line numbers of matching braces.
The file contents are as follows
1 ( CLASS "FRUIT"
2 (TYPE "PERSISTENT")
3 (MESSAGE_TYPE "M")
4 (GET_REQRD "Y")
5 (SET_REQRD "Y")
7 ( CLASS... (3 Replies)
Discussion started by: Rajendra_1510
8. UNIX for Dummies Questions & Answers
I am trying to zgrep / grep list of files so that it displays only the matching filename:line number and does not display the whole line, like:
(echo "1.txt";echo "2.txt") | xargs zgrep -no STRING
If I use -o option, it displays the matching STRING and if not used, displays the... (3 Replies)
Discussion started by: vvaidyan
9. Shell Programming and Scripting
i have to grep for string in file but i want to find the group of this line so i must get lines before and select the group.
the file look like :
####name_groupe3... (4 Replies)
Discussion started by: kamel.seg
10. Shell Programming and Scripting
Here i have some doubts can anyone clarify?.
Is it possible to grep the lines by specifying the line numbers.
I know the line number which i want to grep.
grep 40th line filename
grep 50th line filename
Need ur comments. (4 Replies)
Discussion started by: salaathi