10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
I am trying to find how to do the following with awk and other tools.
Find a line in the file where the element 1 is equal to 12345, from the first occurrence, in that line find the element 11 what is equal to and print all lines in file where their element 11 is equal to the value of... (2 Replies)
Discussion started by: koutroul
2 Replies
2. Shell Programming and Scripting
Input File
Name of the session: filesrv_quo
snap Logical Units UID: 60:06:01:60:01:7B:25:00:C8:86:B0:CA:5B:A2:E0:11
Name of the session: verspn2_at_176_0218
snap Logical Units UID:
Name of the session: DRT-ny-iadsql1-c_ny-iadsql2-c
snap Logical Units UID: ... (4 Replies)
Discussion started by: greycells
4 Replies
3. Shell Programming and Scripting
Hi All,
I have a problem to resolve. For following XML file, I need to parse the values based on Tag Name. I would prefer to use this by awk. I have used sed command to replace the tags (s/<SeqNo>//).
In this case there can be new tags introduced. So need to parse it based on Tag Name. Any... (9 Replies)
Discussion started by: Tons
9 Replies
4. Shell Programming and Scripting
Hi All,
I have an input file something like this:
Line1
Line2
....
LineN
Identifier
( Field1a, Field1b;
Field2a, Field1b;
Field3a, Field1b;
.....
)
LineN+1
LineN+2
etc..
I basically need Field1a, Field2a, Field3a.... from the above file (6 Replies)
Discussion started by: tostay2003
6 Replies
5. Shell Programming and Scripting
hello ,
i am trying to parse xml using awk however its a little bit tricky as i want
<databases>
<source>
<host>prod</host>
<port>1522</port>
<tns>GP1</tns>
<user>P11</user>... (6 Replies)
Discussion started by: amit1_x
6 Replies
6. UNIX for Dummies Questions & Answers
I have a file that reads like this:
name:john
name:bill
name:james
phone:123
phone:456
phone:789
i would like change the file so it appears like this:
name:john
phone:123
name:bill
phone:456
name:james
phone:789
any help is greatly appreciated! (1 Reply)
Discussion started by: chknstrp
1 Replies
7. Shell Programming and Scripting
Hi, I have a input file like this
TH2TH2867Y NOW33332106Yo You Baby
TH2TH3867Y NOW33332106No Way Out
TH2TH9867Y NOW33332106Can't find it
TJ2TJ2872N WOW33332017sure thing alas
TJ2TJ3872N WOW33332017the sky rocks
TJ2TJ4872N WOW33332017nothing else matters ... (4 Replies)
Discussion started by: devtakh
4 Replies
8. Shell Programming and Scripting
Hi there
Not to good in awk . So bear with me I would need a one liner
to take a file with this in it
name: joe smoe;
group: group1;
name: linda smith;
... (2 Replies)
Discussion started by: bombcan
2 Replies
9. Shell Programming and Scripting
hi , i would like to parse some file with the fallowing data :
data data data "unwanted data" data data "unwanted data"
data data data data #unwanted data.
what i want it to have any coments between "" and after # to be erased using awk or/and sed.
has anyone an idea?
thanks. (3 Replies)
Discussion started by: Darsh
3 Replies
10. Shell Programming and Scripting
I need help with a problem that I have not been able to figure out.
I have a file that is about 650K lines. Records are seperated by
blank lines, fields seperated by new lines. I was trying to make
a report that would add up 2 fields and associate them with a CP.
example output would be... (11 Replies)
Discussion started by: timj123
11 Replies