diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-02-17 20:59:17 +0000 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-02-17 20:59:17 +0000 |
commit | 73eb9e630819272b21342ba7643e4ec552542a1b (patch) | |
tree | 82331f9708588054e074b4878a67d48ed61fe894 | |
parent | fdeee8ccf213f7e9f74b81abc7f0f96b28b35a6d (diff) |
-rwxr-xr-x | gophed | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,7 +69,7 @@ fi if [ "$script_name" = "gophed" ] || [ "$script_name" = "v" ]; then - sel="$(printf '%s' "$1" | sed -r 's:/:+:g')" + sel="$(printf '%s' "$1" | sed -E 's:/:+:g')" TMPFILE="$(mktemp "/tmp/gophed_${2}_${sel}_$3.XXXXXXXXXXXXXXXXXXX")" goto_url "$1" > "$TMPFILE" while read -r line; do echo "$line"; done | ed -p "$PROMPT" "$TMPFILE" @@ -84,7 +84,7 @@ if [ "$script_name" = "g" ] || [ "$script_name" = "d" ]; then PORT="$(printf '%s' "$LINE" | awk -F ' ' '{ match($4,/[[:digit:]]+/); print substr($4,RSTART,RLENGTH) }')" if [ "$script_name" = "g" ]; then - SEL="$(printf '%s' "$RESOURCE" | sed -r 's:/:+:g')" + SEL="$(printf '%s' "$RESOURCE" | sed -E 's:/:+:g')" TMPFILE="$(mktemp "/tmp/gophed_${HOST}_${SEL}_$PORT.XXXXXXXXXXXXXXXXXXX")" go "$RESOURCE" "$HOST" "$PORT" > "$TMPFILE" while read -r line; do echo "$line"; done | ed -p "$PROMPT" "$TMPFILE" |