Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- hoje=`date +%Y-%m-%d`
- LAST=$(find . -maxdepth 1 -name $hoje-"*.bug" -type f -printf "%p\n" | sed -e s/.\\/$hoje-//g -e s/.bug//g | sort -g | tail -1)
- echo $hoje-$(($LAST + 1)).bug
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement