reorg bash
This commit is contained in:
parent
a61ce23294
commit
e21f2470ef
26 changed files with 5 additions and 19 deletions
9
bash/last.sh
Executable file
9
bash/last.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
# 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