Search Results

Search: Posts Made By: JA50
1,294
Posted By neutronscott
This looks familiar... You even gave -F: in your...
This looks familiar... You even gave -F: in your last post. Do you know why you tried -F'|' this time? Do you want that as the output delimiter?

The entire record is $0. NF is number of fields...
1,376
Posted By vgersh99
what's the "third month"? awk -F: '$5 >= 90...
what's the "third month"?

awk -F: '$5 >= 90 && $5<=150 {print $1}' information
1,376
Posted By neutronscott
ah can't use two numbers in 1 comparison...
ah can't use two numbers in 1 comparison operation like that...


$ awk -F: '($5 >= 90)&&($5 <= 150){print $1}' info
Jody Savage
Chet Main
1,138
Posted By agama
To print only those in 916, use == meaning $3 is...
To print only those in 916, use == meaning $3 is equal to 916. Otherwise you'll get 917, 981...

awk -F "[():]" ' $3+0 == 916 {print $1;}' input-file
1,138
Posted By agama
Another way; prints the whole line: awk...
Another way; prints the whole line:


awk -F "[()]" ' $2+0 < 916' input-file



Prints just the first field

awk -F "[():]" ' $3+0 < 916 {print $1;}' input-file
1,138
Posted By pokerino
Hi, try this: awk -F" " '/(916)/ {print...
Hi,

try this:

awk -F" " '/(916)/ {print "\t\t\t\t"$0} !/(916)/ {print $0}' filename
1,092
Posted By joeyg
Unsure of your issue
$ awk -F: '/C|E/ {print $1}' sample2.txt
Christian Dobbins
Chet Main
Elizabeth Stachelin

$ awk -F" " '/C|E/ {print $1}' sample2.txt
Christian
Chet
Elizabeth


Your original command only...
1,092
Posted By birei
Hi JA50, One way: $ cat infile Mike...
Hi JA50,

One way:

$ cat infile
Mike Harrington: (510) 548-1278:250:100:175
Christian Dobbins: (408) 538-2358:155:90:201
Susan Dalsass: (206) 654-6279:250:60:50
Chet Main : (510)...
1,092
Posted By neutronscott
What you need is an anchor, that says the match...
What you need is an anchor, that says the match must start at the beginning. ^ anchors to beginning and $ to the end.


awk -F: '/^(C|E)/ {print $1}'
955
Posted By chapeupreto
If you need Lane, but not lane (i.e.:...
If you need Lane, but not lane (i.e.: case-sensitive matters)
sed '/Lane/d' input_file.txt > output_file.txt
955
Posted By agama
sed '/lane/d' input-file >output-file
sed '/lane/d' input-file >output-file
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 04:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy