Mailinglist Archive: opensuse (880 mails)

< Previous Next >
[opensuse] Back to the basics (bash)
  • From: Ciro Iriarte <cyruspy@xxxxxxxxx>
  • Date: Sun, 11 Aug 2013 17:04:53 -0400
  • Message-id: <CAEaLa5HX0Lscv_D4uAW4ALvPseWOa=DrrpuxDYwgamzq=q1m6w@mail.gmail.com>
Hi!, anybody can tell me why using "[]" sustitution for file listing works

ciro@roamer:/tmp> ls -ld [123]b
drwxr-xr-x 2 ciro users 4096 ago 10 16:22 1b
drwxr-xr-x 2 ciro users 4096 ago 10 16:22 2b
drwxr-xr-x 2 ciro users 4096 ago 10 16:22 3b

But for file creation it doesn't?

ciro@roamer:/tmp/bash> mkdir [123]dir
ciro@roamer:/tmp/bash> touch [123].file
ciro@roamer:/tmp/bash> ls -l
total 4
drwxr-xr-x 2 ciro users 4096 ago 11 17:04 [123]dir
-rw-r--r-- 1 ciro users 0 ago 11 17:04 [123].file

Regards,

--
Ciro Iriarte
http://cyruspy.wordpress.com
--
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >