~slang/dotfiles

aee179fda33298a4b7968c4c6aea9738224d36f1 — Sean Lang 10 months ago 07dad99
accept multiple files in sort-uniq-in-place command
1 files changed, 4 insertions(+), 1 deletions(-)

M script/sort-uniq-in-place
M script/sort-uniq-in-place => script/sort-uniq-in-place +4 -1
@@ 1,2 1,5 @@
#!/bin/sh
sort -u $1 | sponge $1
for file in "$@"
do
    sort -u $file | sponge $file
done