Skip to content

pjump/swapf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swap two files with bash

Swap two files via a 3rd file in the current directory. Handle error cases.

Works as a standalone executable and an insourcable bash script.

Tests

Test are written in bash too in a mini toy DSL resembling rspec. They can be run lazily with rake (shows the old test output if the source hasn't changed) and eagerly with spec/swapf_spec.sh.

About

Mini bash script/function to swap two files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published