Advertisement
Guest User

Untitled

a guest
Aug 16th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/bash
  2. INPUT=data.cvs
  3. OLDIFS=$IFS
  4. IFS=,
  5. [ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
  6. while read ParentName ChildName
  7. do
  8. echo "Parent folder : $ParentName"
  9. echo "Child folder : $ChildName"
  10. mkdir $ParentName/$ChildName
  11. done < $INPUT
  12. IFS=$OLDIFS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement