Skip to content

Instantly share code, notes, and snippets.

@jihyeonRyu
Created September 11, 2018 00:10
Show Gist options
  • Save jihyeonRyu/0bf94fdf66bad7f538c21202d465d56d to your computer and use it in GitHub Desktop.
Save jihyeonRyu/0bf94fdf66bad7f538c21202d465d56d to your computer and use it in GitHub Desktop.
#!/bin/bash
line_num=0
name_list=()
cat list.txt | while read -r line
do
echo $line
mv ./$line ./../file/$line
((line_num++))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment