Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Linux find folder name before timestamp(20150930)
$> find ./dingding_bonus -type d -print | sed -n -e '/[0-9]\{8,8\}$/p' | sed -n -e 's/\(.*\)\/\([0-9]\{8,8\}\)$/\1\/\2##\2/gp;' | awk -F '##' '{if(int($2) < cmpVl)print $1}' cmpVl="20150910"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.