Forgot your password?
typodupeerror

Comment (Useful) Stupid Unix Tricks? (Score 2, Informative) 2362

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.

Slashdot Top Deals

...when fits of creativity run strong, more than one programmer or writer has been known to abandon the desktop for the more spacious floor. - Fred Brooks, Jr.

Working...