fix
This commit is contained in:
parent
c4d6f4c027
commit
78be66e28e
2 changed files with 2 additions and 2 deletions
|
@ -9,4 +9,4 @@
|
|||
|
||||
[ -z "$1" ] && echo "usage: rotdir regex 2>&1" && exit 1
|
||||
base="$(basename "$1")"
|
||||
find "$PWD" | awk "BEGIN { lines = \"\"; m = 0; } /^$base$/ { m = 1; } { if (!m) { if (lines) { lines = lines\"\n\"; } lines = lines\"\"\$0; } else { print \$0; } } END { print lines; }"
|
||||
ls "$PWD" | awk "BEGIN { lines = \"\"; m = 0; } /^$base$/ { m = 1; } { if (!m) { if (lines) { lines = lines\"\n\"; } lines = lines\"\"\$0; } else { print \$0; } } END { print lines; }"
|
||||
|
|
|
@ -18,4 +18,4 @@ cmds="\
|
|||
|
||||
choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1
|
||||
|
||||
echo "$cmds" | grep "^$choice " | cut -d ' ' -f2-
|
||||
`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2-`
|
||||
|
|
Loading…
Reference in a new issue