Topics | Search Log Out | Register | Edit Profile
Hide Clipart | Banned/Unbanned User Log | Moderator Login History | Thread Delete/Move Log | Last 30 mins | 1 | 2
Any AWK experts?

Chalanachithram.com DB » New TF Industry Related » Archive through November 19, 2015 » Any AWK experts? « Previous Next »
Author Message
 

Jilljill
Junior Artist
Username: Jilljill

Post Number: 461
Registered: 01-2013
Posted From: 76.220.10.3

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, November 18, 2015 - 12:28 am:       

use grep something like

grep -e -v '^$|^UN' test.txt | wc -l
 

Hadoop
Comedian
Username: Hadoop

Post Number: 1528
Registered: 12-2014
Posted From: 99.127.225.114

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, November 18, 2015 - 12:00 am:       


Validator:

And operator sangathi theleedu naku kooda, kani, this should work for omitting blank lines, then omitting starting with UN, then omitting starting with UP.
awk 'NF' temp | awk '!/^UN/' | awk '!/^UP/' | wc -l




thanks bro, but i need to exclude so many combination of letters to desired result, i make it working but may be we can achieve this by using and operator.
 

Validator
Junior Artist
Username: Validator

Post Number: 859
Registered: 07-2010
Posted From: 98.253.60.40

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, November 17, 2015 - 11:35 pm:       

And operator sangathi theleedu naku kooda, kani, this should work for omitting blank lines, then omitting starting with UN, then omitting starting with UP.
awk 'NF' temp | awk '!/^UN/' | awk '!/^UP/' | wc -l
 

Hadoop
Comedian
Username: Hadoop

Post Number: 1527
Registered: 12-2014
Posted From: 99.127.225.114

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, November 17, 2015 - 11:32 pm:       


Validator:

Actually does not start with UN annavu kabatti:

awk 'NF' temp | awk '!/^UN/' | wc -l





validator bro, suppose not start with UN and UP and Some other letter anuko, and operator ela use chestamu awk lo?
 

Hadoop
Comedian
Username: Hadoop

Post Number: 1526
Registered: 12-2014
Posted From: 99.127.225.114

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, November 17, 2015 - 11:13 pm:       


Validator:

Actually does not start with UN annavu kabatti:

awk 'NF' temp | awk '!/^UN/' | wc -l





but blank lines and starting with lines D, ==, | exclude cheyali bro before i count not start with UN

how to do this
 

Validator
Junior Artist
Username: Validator

Post Number: 857
Registered: 07-2010
Posted From: 98.253.60.40

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, November 17, 2015 - 11:05 pm:       

Actually does not start with UN annavu kabatti:

awk 'NF' temp | awk '!/^UN/' | wc -l
 

Validator
Junior Artist
Username: Validator

Post Number: 856
Registered: 07-2010
Posted From: 98.253.60.40

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, November 17, 2015 - 11:01 pm:       

awk 'NF' temp | awk '/^UN/' | wc -l
Idena?
 

Hadoop
Comedian
Username: Hadoop

Post Number: 1525
Registered: 12-2014
Posted From: 99.127.225.114

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, November 17, 2015 - 10:54 pm:       

i need some quick help, for example i have test file, i need to count number lines which does not start with UN, but test file had there are blank lines, how to write some simple awk command

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x93c74a0){Movie Clipart}
Show / hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

  A   B   C   D   E   F   G   H   I   J   K   L   M  

N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: