Skip to content

Instantly share code, notes, and snippets.

@ynkdir
Created November 3, 2011 04:04
Show Gist options
  • Save ynkdir/1335754 to your computer and use it in GitHub Desktop.
Save ynkdir/1335754 to your computer and use it in GitHub Desktop.
Vimball Archiver
#!/bin/sh
# vimball archiver
# vmb.sh file1 file2 ... > out.vmb
echo '" Vimball Archiver by Charles E. Campbell, Jr., Ph.D.'
echo 'UseVimball'
echo 'finish'
for i in $*; do
echo "$i [[[1"
wc -l $i | cut -d ' ' -f 1
cat $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment