added backup function, fixed permissions on 4chandl

This commit is contained in:
Phuntsok Drak-pa committed 2019-08-26 10:06:35 +02:00
1 parent 1e11b7642b
commit 176fbf8611
2 files changed
+3

No files matched your search

Executable → Regular
View File
File mode changed.
+3
View File
@@ -0,0 +1,3 @@
function backup -d "backs up a file and appends to its name the date and time of backup"
cp $argv[1] $argv[1].bak.(date +"%Y%m%d%H%M%S")
end