Skip to content

Wednesday, December 2nd, 2009

New Linux User

HOWTO: Use Shell Wildcards Part II

April 24, 2006 by Jon  
Filed under How To

I find this particular wildcard operation to be so cool that it needs its own entry. I’ve already written about the more common BASH wildcard tokens, but this next one uses the {brace} character to expand entire file names like so:

touch file_{one,two,three}

This command will create (or update the timestamp on them if they exist) the files file_one, file_two, and file_three in the current directory.

Cool, or what?

  • StumbleUpon
  • Digg
  • Facebook
  • Mixx
  • Google
  • TwitThis
  • Reddit
  • Yahoo! Buzz
  • Slashdot
  • E-mail this story to a friend!

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!


About Us | Advertise with us | Blog for EveryJoe | Privacy Policy | Terms of Use
Get This Theme | Sitemap


All content is Copyright © 2005-2009 b5media. All rights reserved.