Superlocate: a command-line productivity booster

2013-11-01 Thread Anti Thesis
First of all: I've posted this before, but couldn't find it back in the archive. If this is unwanted here, apologies, but I didn't receive any message about this, so I don't know if my post got deleted, or if something went wrong with sending it. I've written a very small, simple bash script t

Re: xargs bugs

2013-11-01 Thread Eric Blake
On 11/01/2013 01:54 AM, Xiao Wu DAI wrote: > > hi, > > it seems `echo ..` doesn't work in GNU xargs version 4.2.27 like below > | xargs -t -i mv {}`echo {} |sed 's/mode/dai/g'` 'echo' is your friend. Try: echo xargs -t -i mv {} `echo {} | sed 's/mode/dai/g'` to see that you were executing: x

xargs bugs

2013-11-01 Thread Xiao Wu DAI
hi, it seems `echo ..` doesn't work in GNU xargs version 4.2.27 like below | xargs -t -i mv {}`echo {} |sed 's/mode/dai/g'` daixw@shel0002 15:45 110>ls mode.pdf daixw@shel0002 15:46 111>find ./ -name "*.pdf" -ls | awk -F "/" '{print $2}' mode.pdf daixw@shel0002 15:48 112>find ./ -name "*.pdf"