The UNIX and Linux Forums  


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




Thread: awk on a string
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-24-2008
melanie_pfefer melanie_pfefer is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 234
awk on a string

Hi

I am trying to do

Code:
awk -F: '{print $3}' a:b:c

to get c.

awk however expects a file:



Code:
awk: can't open a:b:c

any idea?

Last edited by radoulov; 07-24-2008 at 09:28 AM.. Reason: added code tags