Commit 72589774 authored by Roman Inflianskas's avatar Roman Inflianskas Committed by Bruno Pinto

add bak plugin

parent b616d177
# Function to rename files and directories (a.txt -> a.txt.20140608_195859.bak)
# (c) Roman Inflianskas (rominf) <infroma@gmail.com>, 2014
function bak
for arg in $argv
# trim / for directories
set arg (echo $arg | sed "s/\///")
mv $arg $arg.(date +"%Y%m%d_%H%M%S").bak
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment