Skip to content

Instantly share code, notes, and snippets.

@kamatama41
Created June 5, 2012 09:00
Show Gist options
  • Save kamatama41/2873728 to your computer and use it in GitHub Desktop.
Save kamatama41/2873728 to your computer and use it in GitHub Desktop.
引数で指定したディレクトリ内にある".dat"ファイルを指定したディレクトリ配下に移動する
#!/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