init
This commit is contained in:
commit
5e1b2ac657
26 changed files with 393 additions and 0 deletions
9
bash/last/last.sh
Executable file
9
bash/last/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 '^\d.*\.md|txt' | tail -n 1
|
||||
0
bash/last/test/001.md
Executable file
0
bash/last/test/001.md
Executable file
0
bash/last/test/002.blah.md
Executable file
0
bash/last/test/002.blah.md
Executable file
0
bash/last/test/004.foo.md
Executable file
0
bash/last/test/004.foo.md
Executable file
0
bash/last/test/005.md
Executable file
0
bash/last/test/005.md
Executable file
0
bash/last/test/009.boo.md
Executable file
0
bash/last/test/009.boo.md
Executable file
0
bash/last/test/098.baa.md
Executable file
0
bash/last/test/098.baa.md
Executable file
0
bash/last/test/099.poo.md
Executable file
0
bash/last/test/099.poo.md
Executable file
Loading…
Reference in a new issue