Created
June 5, 2012 09:00
-
-
Save kamatama41/2873728 to your computer and use it in GitHub Desktop.
引数で指定したディレクトリ内にある".dat"ファイルを指定したディレクトリ配下に移動する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for file in `find $1 -name "*.dat"`;do | |
echo "move: $file" | |
mv $file $1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment