: ) wonderful world ( :

the metasyntactic variable

invisible CR

leave a comment »

A script of mine stopped working for a set of inputs, the reason behind is below… : D

$ cat i
1
2
3
4
$ cat i | while read i; do echo blah $i; done
blah 1
blah 2
blah 3
blah 4
$ cat i | while read i; do echo blah $i foo; done
 foo 1
 foo 2
 foo 3
 foo 4
$ xxd i
0000000: 310d 0a32 0d0a 330d 0a34 0d0a            1..2..3..4..
$

 

Advertisement

Written by grault

November 29, 2011 - 12:29 pm at November 29, 2011 - 12:29 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.