Skip to content

Instantly share code, notes, and snippets.

@SergeyStorm
Last active January 29, 2017 22:45
Show Gist options
  • Save SergeyStorm/78f06d2d5593d049381d9c7c270d4f96 to your computer and use it in GitHub Desktop.
Save SergeyStorm/78f06d2d5593d049381d9c7c270d4f96 to your computer and use it in GitHub Desktop.
#!/bin/bash
path=$1
if [ -d $path ]
then
dirs=$(ls -1 $path | grep -v home)
for i in $dirs
do
if [ -d $path$i ]
then
echo $path$i
fi
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment