Friday, June 27, 2008

xargs command replace string

Using xargs command with replace string

to scp files with spec pattern

ls file* | xargs -n1 -i{} scp {} root@:/dest