-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well it's a simple mistake...you'll kick yourself.
You're escaping the character that makes bash call your variable: sed "s/$/$date/" test.ldif2009-02-10 sed "s/$/.$date/" test.ldif.2009-02-10 sed "s/$/\/$date/" test.ldif/2009-02-10 sed "s/$/-$date/" test.ldif-2009-02-10 The last 3 look better Bryan Nelson Serafica wrote: | It doesn't work. Here what I did: | | #!/bin/bash | | date=`/bin/date +%F` | | fileschanged -rap /home/billing | sed *"*s/$/\$date/*"* & | | It still show A /home/billing/true$date instead of A | /home/billing/true2008-02-11 | | Anymore ideas? | | | On Tue, Feb 10, 2009 at 7:15 PM, Daniel Eggleston <[email protected] | <mailto:[email protected]>> wrote: | | use double quotes instead of single in your sed command. | | | | | - -- A healthy diet includes Linux, Linux and more Linux. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmSIKMACgkQh+MLjl5SKYQQVACcD0d3/bxu25o3bfP6hRUDpP5S ErIAn3CB8QBEZM+ZZ8Bebr+Nz5TtyAXN =d4kC -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
