diff --git a/.local/bin/delete_certain_known_hosts b/.local/bin/delete_certain_known_hosts index 637c56f1..2a20b849 100755 --- a/.local/bin/delete_certain_known_hosts +++ b/.local/bin/delete_certain_known_hosts @@ -26,6 +26,6 @@ done if [[ -z "$lines_to_delete" ]]; then echo "All arguments passed were invalid lines in $known_hosts_path" else - sed -i'' "$lines_to_delete" "$known_hosts_path" + sed -i'' -e "$lines_to_delete" "$known_hosts_path" echo "Deleted lines $(echo $(echo "$lines_to_delete" | sed 's/d;/, /g') | sed 's/.$//' )" fi