Properties

Last built 9 months ago using go version go1.6.2 linux/amd64 and 48 seconds of time

Downloads
Filename
File Size
 
samdir_master_darwin-386.zip
781KiB
samdir_master_darwin-amd64.zip
825KiB
samdir_master_linux-386.zip
787KiB
samdir_master_linux-amd64.zip
837KiB
samdir_master_linux-arm.zip
785KiB
samdir_master_windows-386.zip
839KiB
samdir_master_windows-amd64.zip
892KiB
Project-Readme for this version

samdir

Samdir allows you to edit directories in your text editor. It is named after sam and vidir from moreutils (man page)

Usage

go get github.com/mehlon/samdir
export EDITOR=sam # you may also use vim etc.
samdir dir/
samdir *.jpeg

Say you have a hundred files named dog1, dog2, dog3 etc. Before you upload these, you want to stress that the dog is cute, so you use samdir with the sam text editor, do:

,x/dog/i/cute
w
q

Now you have a hundred files named cutedog1, cutedog2, cutedog3 etc. Done!