aboutsummaryrefslogtreecommitdiff
path: root/sel
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-07-07 13:07:34 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-07-07 13:07:34 +0200
commit5509b5f9cc771804876e3d050ea4b0dda9e6fac2 (patch)
tree316e867733b4678afb34e3cabce1fa948e6ad8b2 /sel
parentde2e9cd47bb9ba35e9c62894c7c6a09551640068 (diff)
downloadscripts-5509b5f9cc771804876e3d050ea4b0dda9e6fac2.tar.gz
scripts-5509b5f9cc771804876e3d050ea4b0dda9e6fac2.zip
Fixed non-standard use of \t in sed (I should check this for more scripts)
Diffstat (limited to 'sel')
-rwxr-xr-xsel4
1 files changed, 2 insertions, 2 deletions
diff --git a/sel b/sel
index 5865b24..a2c5edc 100755
--- a/sel
+++ b/sel
@@ -63,8 +63,8 @@ cphere() {
63 return 1 63 return 1
64 else 64 else
65 paste "$file" "$file2" | while read f; do 65 paste "$file" "$file2" | while read f; do
66 fold=$(echo "$f" | sed 's/\t.*//') 66 fold=$(echo "$f" | sed 's/ .*//')
67 fnew=$(echo "$f" | sed 's/.*\t//') 67 fnew=$(echo "$f" | sed 's/.* //')
68 cp -R "$fold" ./"$fnew" || return 1 68 cp -R "$fold" ./"$fnew" || return 1
69 done 69 done
70 fi 70 fi

Generated with cgit - Back to sebastiano.tronto.net