-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Walter Marguccio wrote:
| ----- Original Message ----
| From: "McKown, John" <[EMAIL PROTECTED]>
|
|> http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html
|
|
| John,
|
| interesting article. The 'mkdir -p' caught my attention and I tried to
build a directory
| structure using the Listing 3 sample under USS. No way.
| The character '{' (paragraph) does not work. Have you tried it ?
|
Hello, Walter.
The thing with {...} is they're shell expansion operators. You will need a
shell that supports them, such as bash or ksh (some versions). The old
bourne shell won't cut it.
You can test for it using a simple echo, no need to bother yourself with mkdir:
$ echo a{b,c,d}
ab ac ad
It will only do the job as a bareword, that is, you can not enclose it in
quotes of any kind. Braces also will not be expanded when you forget to
close the structure with a closing brace (can be tricky when you are nesting
braces).
For more information, see "Brace Expansion" in your shell's manual.
Kind regards,
- --
~ Grega Bremec
~ gregab at p0f dot net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFFm2khfu4IwuB3+XoRA81IAJ9sFznWERC9klugraVDc2v6qTap2ACfQwMb
XErrl1Z+W0jy0Wtd6eXTpP0=
=DtxI
-----END PGP SIGNATURE-----
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390