Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ -z $"(ls *.txt)" ]
- then
- echo NO FILES
- else
- for i in $ls( *.txt)
- do
- mv -i $i ${i%".txt"}.doc
- done
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement