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

Real Programmers don't write in FORTRAN. FORTRAN is for pipe stress freaks and crystallography weenies. FORTRAN is for wimp engineers who wear white socks.

Working...