The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
how to print field n of line m
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
how to print field n of line m
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
01-14-2009
Deanne
Registered User
Join Date: May 2007
Posts: 31
Hmmm, can someone help me why it doesnt work when i use a variable for the "given_line", eg:
awk 'NR==
$counter
{print $25}' $argv[1]
thanks in advance!
Deanne
View Public Profile
Find all posts by Deanne
Find Deanne's past nominations received
Find Deanne's present nominations given