Some interesting unix commands I recently discovered: xargs and seq. With these you can do this, for example:
Find all of the files named foo, and create a tar file:
find . -name foo | xargs tar cvfz tarfile.tar.gz
Iterate through your cluster nodes:
for i in `seq 0 7` ; do scp foolib c0-$i:/usr/local/lib ; done
No comments:
Post a Comment