X-Git-Url: https://iankelling.org/git/?p=tee-unique;a=blobdiff_plain;f=appendu;fp=appendu;h=460e363fd0223ad88718581cb7d3630da84fef58;hp=67e68342a2bb18f614e6e429f375bee04ed9008d;hb=ff367964d27678cbbc93aff541e3b45274919668;hpb=dc0386f28d2e917f8a5a81ff66bcd26d3b029e42 diff --git a/appendu b/appendu index 67e6834..460e363 100755 --- a/appendu +++ b/appendu @@ -72,7 +72,7 @@ LINE_SETs are treated the same. # e = run script, $a\ means append following text, but there is none, # so sed only does what it always does when it was supposed to modify a file, # which is append a newline if there was none. - sed -ie '$a\' "$file" + sed -i '$a\' "$file" # command substitution removes any trailing newlines, so we have to add # a non-newline ending, we randomly chose "b", then remove it. local content=$(cat "$file"; echo b)