print everything after $date
Say I have a line like such:
Code:
today 2010 Feb 21 test10, 12AM What I thought to do so far is to set a variable to the format used in the string like so: Code:
date="$(date +%Y\ %b\ %e)" Any hints? |
Quote:
Code:
echo "today 2010 Feb 21 test10, 12AM" | awk '{print $5 " " $6}' |
Quote:
|
Quote:
Code:
$ line="today 2010 Feb 21 test10, 12AM" Code:
$ var=$(date +%Y\ %b\ %e) |
Quote:
Code:
echo "today 2010 Feb 21 two words, 12AM" | awk '{print substr($0, index($0,$5)) }' Code:
two words, 12AM |
Quote:
|
All times are GMT -5. The time now is 12:58 AM. |