Skip to content

Instantly share code, notes, and snippets.

@syui
Created February 24, 2015 16:12
Show Gist options
  • Save syui/0d238f48d257e0f89b9b to your computer and use it in GitHub Desktop.
Save syui/0d238f48d257e0f89b9b to your computer and use it in GitHub Desktop.
#!/bin/bash
dire=`echo $1 | sed -e 's@[^/]@@g'`
numb=`expr ${#dire} + 1`
find $* | cut -d / -f $numb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment