Skip to content

Instantly share code, notes, and snippets.

@froop
Created May 9, 2011 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save froop/962690 to your computer and use it in GitHub Desktop.
Save froop/962690 to your computer and use it in GitHub Desktop.
[bsh] ファイル水増し
#!/bin/sh
FILE_COUNT=150
COPY_FILE=template
NAME_FORMAT=testfile%05d
mkdir result
idx=1
while test $idx -le $FILE_COUNT
do
file_name=`printf "$NAME_FORMAT" $idx`
cp -r $COPY_FILE result/$file_name
idx=`expr $idx + 1`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment