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 -->
#
6
(
permalink
)
01-29-2008
smr_rashmy
Registered User
Join Date: Sep 2007
Posts: 40
still it did not updated frnd,
$ dt=`date -u +%d-%m-%y`
$
$ echo $dt
29-01-08
$
$ cat tst.txt
Date 12-01-08
$
$ awk -v dat=$dt '{if( $1 ~ /Date/) print $1" "dat;}' tst.txt
Date 29-01-08
$
$
$
cat tst.txt
Date 12-01-08
$
smr_rashmy
View Public Profile
Find all posts by smr_rashmy
Find smr_rashmy's past nominations received
Find smr_rashmy's present nominations given