Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. for file in ./dir*/dir*/*GABA*.dat; do
  2. tag=${file%/*}
  3. tag=${tag} #here, I believe the value of the variable will be "dir*/dir*",
  4. so this is where I was thinking to remove the '/'
  5. tag=$(echo "$tag" | tr '[:upper:]' '[:lower:]')
  6. mv -- "$file" "./GABA/${tag}.dat"
  7. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement