[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: diffing two files in konqueror



On Fri, 2006-08-25 at 09:14 -0700, Casey T. Deccio wrote:
> I've recently
> found that using bash brace expansion simplifies things greatly on the
> command line.
> 
> gvimdiff file{1,2}.txt
> gvimdiff /usr/share/examples/example{1,2}.txt

I might add that bash expands these to their full paths before command
execution, making it ideal for other commands also:

cp file{1,2}.txt
 =>
cp file1.txt file2.txt

mv /usr/share/examples/file.txt{,.bak}
 =>
mv /usr/share/examples/file.txt /usr/share/examples/file.txt.bak

Casey






Reply to: