Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ dirs=$(ls -1d /mnt/*/)
- $ echo $dirs
- /mnt/ext4/ /mnt/local/ /mnt/remote/ /mnt/test/
- $ echo "$dirs"
- /mnt/ext4/
- /mnt/local/
- /mnt/remote/
- /mnt/test/
- #!/bin/sh
- dirs=$(ls -1d $1)
- echo "inline"
- echo $dirs
- echo "multiline"
- echo "$dirs"
- $ ./test.sh /mnt/*/
- inline
- /mnt/ext4/
- multiline
- /mnt/ext4/
Add Comment
Please, Sign In to add comment