The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Shell program:Help required on file formating
.
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
:
Shell program:Help required on file formating
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
02-04-2008
sjday
Registered User
Join Date: Dec 2007
Posts: 9
Possible solution
Create a awk file called neatcols with the following contents
{
printf "%-20s %s\n", \
$1, substr($0, index($0,$2))
}
then run it in
awk -f neatcols file3 > file4
sjday
View Public Profile
Find all posts by sjday
Find sjday's past nominations received
Find sjday's present nominations given