Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
split.sh: append -%08d.vcf suffix, only, to end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
mdengler committed Jan 15, 2015
1 parent f38fb4c commit 88c4e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion split.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ set -o errexit -o noclobber -o nounset -o pipefail

for path
do
csplit --elide-empty-files --digits=8 --prefix "$(basename -- "$path")" "$path" $'/^BEGIN:VCARD\r$/' '{*}' >/dev/null
csplit --elide-empty-files --prefix "$(basename -- "$path" .vcf)" --suffix-format "-%08d.vcf" "$path" $'/^BEGIN:VCARD\r$/' '{*}' >/dev/null
done

0 comments on commit 88c4e2c

Please sign in to comment.