shell/ not bash/
This commit is contained in:
parent
a725b5c0de
commit
4870919531
15 changed files with 0 additions and 0 deletions
|
|
@ -1,9 +0,0 @@
|
|||
# Get the last file name of any numbered series of text files.
|
||||
|
||||
# file format:
|
||||
# in regex terms:
|
||||
# [0-9]+\.[.*\.]*md|txt
|
||||
# in plain terms:
|
||||
# [leading numbers with consistent width].[optional string descriptor and . separator][md|txt]
|
||||
|
||||
ls | egrep '^[[:digit:]].*\.md|txt' | tail -n 1
|
||||
Loading…
Reference in a new issue