Unix/Linux Go Back    

Keeping padding in a date field

Shell Programming and Scripting

Kindly Note - This is a Single User Post by Forum Member seanbyrne Regarding:
Keeping padding in a date field.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 01-12-2009   -   Original Discussion by seanbyrne
seanbyrne seanbyrne is offline
Registered User
Join Date: Jan 2009
Last Activity: 16 January 2009, 10:13 AM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for your help guys!

Still having a problem though, i'm plugging the variable into a sed command and its still not padding the %e variable:

CURRENT_DATE="$(date +"%a %b %e")"

sed -n '/^"$CURRENT_DATE"/,$ p' /var/sean/errorlog.log > /tmp/tempfile.tmp

Again, any help is appreciated!