Slashdot Mirror


User: foldoc

foldoc's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. (Useful) Stupid Unix Tricks? on (Useful) Stupid Unix Tricks? · · Score: 2, Informative

    A NeXT consultant showed me this:

        mv /some/long/path/{old,new}file.blah

    The {,} notation expands the containing word to a space-separated list obtained by substituting in each thing in the {}, giving for the above:

        mv /some/long/path/oldfile.blah /some/long/path/newfile.blah

    Great for mv, cp, ln, diff, cmp.