The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to delete duplicate rows based on last column reva Shell Programming and Scripting 16 09-01-2009 10:12 AM
column to rows based on another column... malcomex999 Shell Programming and Scripting 5 07-08-2009 07:28 AM
merge rows based on a common column smriti_shridhar Shell Programming and Scripting 6 10-17-2008 07:15 AM
Select Record based on First Column mgirinath Shell Programming and Scripting 8 07-16-2007 02:38 AM
Select records based on search criteria on first column shashi_kiran_v UNIX for Dummies Questions & Answers 2 12-02-2005 01:49 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 4 Weeks Ago
danmero danmero is offline Forum Advisor  
  
 

Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,441
Quote:
Originally Posted by panyam View Post
Avoid the usage of "cat" here.


Code:
awk -F "" '{ if ($8==0)  print $0 }' yourfile

Code:
awk '$8==0' FS= infile

Not all awk versions support empty FS
  #2 (permalink)  
Old 4 Weeks Ago
Maruti Maruti is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 8
thnx all for your quick response.. its working now
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0