10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have 9 files which are generated dynamically & if there is a some condition which doesn't meet the criteria then file is not created or is of zero size.
so further i am unable to consolidate the files based on following code 1
awk -F, -v ptime="201407" 'FNR==1... (3 Replies)
Discussion started by: siramitsharma
3 Replies
2. Shell Programming and Scripting
Hello, I am working with some very large files (upwards of 1M records). I have written code to parse out a lot of the data and am using awk rather than a built-in "while read LINE" for performance (I have tested both ways). That said, I now need to read each of these incoming lines, check the ninth... (2 Replies)
Discussion started by: dagamier
2 Replies
3. Shell Programming and Scripting
Hello,
Few days ago I found a person checking his mail log by AWK. But unfortunately I forget to take the command from him. Today I got to need that command badly. Here is a reference.
When I check from my mail log like this it will not show me the details.
grep "from=<noreply@panix.com>"... (2 Replies)
Discussion started by: rinti
2 Replies
4. Shell Programming and Scripting
Hi,
I need to check whether a particular file exists ot not using awk.
Can anyone help me please?
For Example:script that i am using:
awk '{filename =$NF;
rc=(system("test -r filename")) print $rc;}' "$1"
is not working.
Here I am passing a text file as input whose last word contains a... (6 Replies)
Discussion started by: manish007
6 Replies
5. Shell Programming and Scripting
Input File1
0BB2 2A11 Split,FriApr80625,1507_7RAID5
0BF6 2829 Synchronized,FriJan140653,1507_7RAID5
0BF6 282A Split,FriApr80625,1507_7RAID5
0C7C 199E Synchronized,FriJan140653,1507_7RAID5
0C7C 1BCC Split,FriApr80625,1507_7RAID5
0DCA 0A9B ... (12 Replies)
Discussion started by: greycells
12 Replies
6. Shell Programming and Scripting
My task is that when the user calls the script
1. If user calls script with
awk -v dtmax= -v stdlim= -f ../Scripts/add-rgauss-xt.awk fin.xt > fout.xt
rgauss will return mean + (stdlim * sigma)
2. If user calls script with
awk -v dtmax= -f ../Scripts/add-rgauss-xt.awk fin.xt > fout.xt... (4 Replies)
Discussion started by: kristinu
4 Replies
7. Shell Programming and Scripting
hi everyone,
# cat a
a 10%
b 25.5%
c 91%
d 50%
# cat a | awk '$2 >= 90%; END {print $_}'
awk: $2 > 90%; END {print $_}
awk: ^ syntax error
awk: each rule must have a pattern or an action part
how to do only print when 2nd coln >= 90%.
Thanks (6 Replies)
Discussion started by: jimmy_y
6 Replies
8. Shell Programming and Scripting
Hi,
For the below problem, awk script is needed..
input file :
jill
jack
jill
jill
jack
jill
jack
jill
Required:
here,
i need to check from first line.
reference is jack. jill need to verified with next line jack. if found print
jill & jack combination hill1
jack & jill &... (0 Replies)
Discussion started by: vasanth.vadalur
0 Replies
9. Shell Programming and Scripting
I have following data in a file a.txt
HELLO123456789
HELLO098765432
HELLO322366565
HELLO2343435
HELLO45343
I have to filter those lines whose length is not equal to 14 using awk.
Thanks in advance:b: (1 Reply)
Discussion started by: nohup
1 Replies
10. Shell Programming and Scripting
Hello,
How to check if two variables( fields in awk) have the same datatype ( INTEGER , REAL, TEXT ) ? (2 Replies)
Discussion started by: scotty_123
2 Replies