Guest User

Untitled

a guest
Jan 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $ dirs=$(ls -1d /mnt/*/)
  2. $ echo $dirs
  3. /mnt/ext4/ /mnt/local/ /mnt/remote/ /mnt/test/
  4. $ echo "$dirs"
  5. /mnt/ext4/
  6. /mnt/local/
  7. /mnt/remote/
  8. /mnt/test/
  9.  
  10. #!/bin/sh
  11.  
  12. dirs=$(ls -1d $1)
  13. echo "inline"
  14. echo $dirs
  15. echo "multiline"
  16. echo "$dirs"
  17.  
  18. $ ./test.sh /mnt/*/
  19. inline
  20. /mnt/ext4/
  21. multiline
  22. /mnt/ext4/
Add Comment
Please, Sign In to add comment