Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for file in ./dir*/dir*/*GABA*.dat; do
- tag=${file%/*}
- tag=${tag} #here, I believe the value of the variable will be "dir*/dir*",
- so this is where I was thinking to remove the '/'
- tag=$(echo "$tag" | tr '[:upper:]' '[:lower:]')
- mv -- "$file" "./GABA/${tag}.dat"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement