mirror of
https://github.com/tcsenpai/mysides.git
synced 2025-06-04 10:10:05 +00:00
Added archiver
This commit is contained in:
parent
e6e6e29b9e
commit
7f3f153429
11
archiver.sh
Executable file
11
archiver.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
DSTRING=$(date +%F)
|
||||
# first, strip underscores
|
||||
CLEAN=${DSTRING//_/}
|
||||
# next, replace spaces with underscores
|
||||
CLEAN=${CLEAN// /_}
|
||||
# now, clean out anything that's not alphanumeric or an underscore
|
||||
CLEAN=${CLEAN//[^a-zA-Z0-9_]/}
|
||||
# finally, lowercase with TR
|
||||
CLEAN=`echo -n $CLEAN | tr A-Z a-z`
|
||||
cp allsides.html archive/$CLEAN.html
|
Loading…
x
Reference in New Issue
Block a user