ls|xargs-t-I{} mv {} {}.old

U can make it clear to refer office instruction.Here I simplely to explain the meaning of the cmd.

1,pipe  |   Std  IO  , from left to right as args(just think so ) 

2 xargs  specify left cmd file name as tracking standard args to next command as args. Simplely U can regard filename as args to next cmd mv to complete rename all  files Name.

猜你喜欢

转载自blog.csdn.net/bjdk2009/article/details/85366655
old
mv