bash复制文件
#!/bin/bash
DEST="../other_folder"
files="app/file1.rb
app/file2.rb"
for file in $files; do
echo "cp -f $file $DEST/$file"
cp -f $file $DEST/$file
done
#!/bin/bash
DEST="../other_folder"
files="app/file1.rb
app/file2.rb"
for file in $files; do
echo "cp -f $file $DEST/$file"
cp -f $file $DEST/$file
done