Shell Script second--move files larger than 200K in the specified directory to/ tmp
# vim/tmp/files.sh
#!/bin/bash
# Move files larger than 200K under the specified directory to/ tmp
read-p " Please enter the directory path where you want to move the directory larger than 200K files : " $
For FILE in ' LS $ '
Do
If [-f $FILE]; Then
If [' Ls-l $FILE | awk ' {print $ '-gt 204800]; Then
MV $FILE/tmp/
Fi
Fi
Done
###############################################################################
# vim/tmp/files.sh
#!/bin/bash
# Move files larger than 200K under the specified directory to/ tmp
read-p " Please enter the directory path where you want to move the directory larger than 200K files : " $
For File in ' ls-l | awk ' $2>204800 ' {print $9} '
Do
MV $File/tmp/
Done
ls-al/tmp/
echo "done!"
Shell script second--move files larger than 200K in the specified directory to/tmp