[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xargs bugs
From: |
Xiao Wu DAI |
Subject: |
xargs bugs |
Date: |
Fri, 1 Nov 2013 15:54:03 +0800 |
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'`
address@hidden 15:45 110>ls
mode.pdf
address@hidden 15:46 111>find ./ -name "*.pdf" -ls | awk -F "/" '{print $2}'
mode.pdf
address@hidden 15:48 112>find ./ -name "*.pdf" -ls | awk -F "/" '{print $2}' |
xargs -t -i mv {} `echo {} |sed 's/mode/dai/g'`
mv mode.pdf mode.pdf
mv: `mode.pdf' and `mode.pdf' are the same file
can anybody help me ?
Many thanks!
Best Regards
Xiaowu Dai
STmicroelectronics (Shenzhen site)
(+)86 -(0)755-8601-2139
Tina: 097-2139
- xargs bugs,
Xiao Wu DAI <=