10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
This is a problem I've worked on a while and can't figure out.
There is a file.txt
..some stuff..
]
]
..some stuff..
The Awk program is trying to extract the year portion of the birth and death ("98: and "2nd C.") using the below technique
#!/bin/awk
@include... (5 Replies)
Discussion started by: Mid Ocean
5 Replies
2. SCO
I am trying to use gawk to search a file and put the second value of the string into a string.
gawk -F: '$1~/CXFR/ {print $2}' go.dat
Below is the file 'go.dat'
====================
HOME :/
CTMP :/tmp
CUTL :/u/rdiiulio/bin
CWRK :/u/work
CXFR :/u/xfer
... (1 Reply)
Discussion started by: trolley
1 Replies
3. Shell Programming and Scripting
Hello!
I've got script to write. It should read databases (names, volumes) from table testdatabase and compares it to actually existing databases in /var/lib/mysql/. If there is no informations about database in table - we should see information "There is no declared informations about database... (1 Reply)
Discussion started by: Zimny
1 Replies
4. Shell Programming and Scripting
While running gawk, OS stating that command not found. (5 Replies)
Discussion started by: sbaisakh
5 Replies
5. Shell Programming and Scripting
Hi All,
I have a doubt with gawk. I have a shell script "cleanup" which calls a gawk script "cleanawk" in it.
we have two unix servers epsun532 and wpsun712. So i tested the script in both the environments.
In epsun532 while calling the gawk script i just mentioned something like this
... (1 Reply)
Discussion started by: Diddy
1 Replies
6. Shell Programming and Scripting
People,
Ive been trying to make a script but i just cant figure it out.
Problem/ Case:
I have a logfile.txt that contains data. The only two things i need to filter on = $1 (date), $6 (errorcode).
In the script i am trying to make, u need to fill in a date. So he searches on that date... (11 Replies)
Discussion started by: Pow3R
11 Replies
7. Shell Programming and Scripting
Hi,
I am using the script to print the portion of the file containing a particular string. But it is giving error "For Reading (No such file or directory). I am using cygwin as unix simulator.
cat TT35*.log | gawk -v search="12345678" '
/mSOriginating /,/disconnectingParty/ {
... (1 Reply)
Discussion started by: vanand420
1 Replies
8. Shell Programming and Scripting
Hi all
I’m looking for a perl equivalent to this command string
I need to imbed this in a existing perl script
cat file1 | gawk -F"|" '{print $1","$2,",",$3,",",$11 >> "new-file"}'
Thank you (4 Replies)
Discussion started by: Ex-Capsa
4 Replies
9. Shell Programming and Scripting
Hey guys need your help with an gawk script... here's what I have so far
gawk '^d/ {printf "%-20s %-10s %-10s %-10s %-4s%2s %5s\n",$9,$1,$3,$4,$6,$7,$8}' ls.kbr
The file ls.kbr is a capture of 'ls-al'
What I want gawk to do is:
1) Find only directories (this is working)
2) skip lines... (2 Replies)
Discussion started by: zoo591
2 Replies
10. Shell Programming and Scripting
I have to compare records in two files. It can be done using gawk/awk but i am unable to do it. Please help me
File1
ABAAAAAB BC asa sa
ABAAABAA BC bsa sm
ABBBBAAA BC bxz sa
ABAAABAB BC csa sa
ABAAAAAA BC dsa sm
ABBBBAAB BC dxz sa
File 2
ABAAAAAB BC aas ba
ABAAAAAB BC asa sa... (6 Replies)
Discussion started by: sandeep_hi
6 Replies