Follow Slashdot blog updates by subscribing to our blog RSS feed

 



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

PLUG IT IN!!!

Working...