The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
A basic question of FOR loop
.
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
:
A basic question of FOR loop
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
09-28-2007
ajcannon
Registered User
Join Date: Aug 2007
Location: Binfield, Berkshire. UK
Posts: 91
awk
don't know if it is the best way but awk will work....
echo $variable | awk '{print $1,$NF}'
note $NF represents the no of fields
ajcannon
View Public Profile
Find all posts by ajcannon
Find ajcannon's past nominations received
Find ajcannon's present nominations given