The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Need help in awk
.
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
:
Need help in awk
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
01-29-2008
dennis.jacob
dj - the student
Join Date: Feb 2007
Location: Singapore/Bangalore/Cochin
Posts: 610
Please read carefully my friend...
Quote:
Also, if you want these changes to written on to a file, you have to use "> new_filename" at the end...
Code:
awk -v dat=$dt '{if( $1 ~ /Date/) print $1" "dat;}' tst.txt >temp cp temp tst.txt
dennis.jacob
View Public Profile
Find all posts by dennis.jacob
Find dennis.jacob's past nominations received
Find dennis.jacob's present nominations given