- To: slug@xxxxxxxxxxx
- Subject: [SLUG] two silly bash questions I can't find in google
- From: david <david@xxxxxxxxxxxxx>
- Date: Tue, 16 Jun 2009 22:36:37 +1000
- User-agent: Thunderbird 2.0.0.21 (X11/20090318)
Q1. why does sed lose the first line?
david@david:~/test$ cat blah
the quick
brown fox jumps
over
the lazy
dog
david@david:~/test$ cat blah | while read line ; do sed s/t/T/ ; done
brown fox jumps
over
The lazy
dog
david@david:~/test$
Q2. what does the @ mean?
david@david:~$ date -d @1174306440
Mon Mar 19 23:14:00 EST 2007
I got this from a google search - the string is from a mysql timestamp which
didn't include the @ I can't find a reference to @ in the date man page.
thanks...
David.