Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for FILE in `ls | egrep "gif|jpg|png|bmp|jpeg|tif|tiff"`
- do
- DIR=`echo $FILE | cut -d '.' -f 1`
- mkdir $DIR
- mv $FILE $DIR
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement