10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys,
My Motive is, There are some View names in the file with the format of SCHEMA.VIEWNAMe,
I want to read the data from file and parse it to SCHEMA and VIEWNAME and execute DB2 command to get the base Table name.
I can parse easily through AWK but i could not execute db2 commands in... (1 Reply)
Discussion started by: Nandy
1 Replies
2. Shell Programming and Scripting
Hello All,
I am trying to parse a log file and i got this code from one of the good forum colleagues, However i realised later there is a problem with this awk script, being naive to awk world wanted to see if you guys can help me out.
AWK script:
awk '$1 ~ "^WRITER_" {p=1;next}... (18 Replies)
Discussion started by: Ariean
18 Replies
3. 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
4. Shell Programming and Scripting
Input File ( this is a sample record )
Storage Group Name: DRT_ny-iadsql1-c_ny-iadsql2-c
Storage Group UID: 00:21:E9:C7:2D:E0:E1:11:82:CC:00:60:16:10:04:0A
HBA/SP Pairs:
HBA UID SP Name SPPort
------- ... (2 Replies)
Discussion started by: greycells
2 Replies
5. 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
6. Shell Programming and Scripting
Hi,
I have shell script which will read single edi document and break data between ST & SE to separate files.Below example should create 3 separate files. I have written script with the below command and it is working fine for smaller files.
awk -F\| -vt=`date +%m%d%y%H%M%S%s` \
... (2 Replies)
Discussion started by: prasadm
2 Replies
7. 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
8. Shell Programming and Scripting
Hi all
I would need some help to introduce 'break' lines into the following
data by using awk:
original data:
RECORD 1000 aaa xxxxxx
RECORD 1001 aaa xxxxxx
RECORD 1002 bbb xxxxxx
RECORD 1003 bbb xxxxxx
RECORD 1004 bbb xxxxxx
RECORD 1005 ccc xxxxxx
RECORD 1006 ccc xxxxxx
RECORD 1007... (5 Replies)
Discussion started by: yomaya
5 Replies
9. 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
10. 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