Bastardoperaatori Päevaraamat

blog.tr.ee

4/2/2010

There is no Type for Empty Files

Filed under: Nutt ja Hala — offf @ 1:40 pm

13:21 <@Offf_> offf@perses:~$ touch a
13:21 <@Offf_> offf@perses:~$ file a
13:21 <@Offf_> a: empty
13:21 <@Offf_> offf@perses:~$ echo > a
13:21 <@Offf_> offf@perses:~$ file a
13:21 <@Offf_> a: very short file (no magic)
13:21 <@Offf_> offf@perses:~$ echo a > a
13:21 <@Offf_> offf@perses:~$ file a
13:21 <@Offf_> a: ASCII text
13:21 <@Offf_> offf@perses:~$
13:22 <@mroos> aga echo -n a > a annab kah 1-baidise ja see on ka very short
13:22 <@Said> said@lakkekauss:~$ echo -n si > perse.txt
13:22 <@Said> said@lakkekauss:~$ file perse.txt
13:22 <@Said> perse.txt: ASCII text, with no line terminators
13:22 <@Said> said@lakkekauss:~$ echo s > perse.txt
13:22 <@Said> said@lakkekauss:~$ file perse.txt
13:22 <@Said> perse.txt: ASCII text
13:23 <@Said> ühesõnaga kaks kaks tähte ja ilma reavahetuseta, või täht koos reavahetusega on tekst

Siit moraal: “Ei ole olemas niisugust asja nagu “tühi tekstifail”!”

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress