LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Andrew Lord <andrewlord@internode.on.net>
To : <linuxsa@linuxsa.org.au>
Date: Mon, 28 Jul 2003 00:44:04 +0930
bash & yank
Hello all,
Just wondering if anyone has a handle on the use of yank under bash.
I would like to extract 3 fields from the date function, to use within a bash
script.
Under bash, if I do:
#!/bin/bash
date
day=yank-2th-arg
month=yank-1th-arg
year=yank-5th-arg
echo "This is the day $day"
echo "This is the month $month"
echo "This is the year $year"
. . . then I just get . ..
This is the day yank-2th-arg
This is the month yank-1th-arg
This is the year yank-5th-arg
man bash hasn't been a lot of help in the use of yank so I'd much appreciate a
any suggestions on this one.
Cheers,
Andrew Lord
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page