dot

packages and services management
Log | Files | Refs | README

commit cc7845875efa934d487febb2caccbb3e533fcff3
parent 89218dd86fdfb57312df95065aee15808f8f672e
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 13 May 2017 23:49:37 +0200

simpler, stronger, io script

Diffstat:
Mbin/io | 13+++----------
1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/bin/io b/bin/io @@ -19,15 +19,6 @@ find "$HOME" \ -print 2> /dev/null | sort -o "$CACHE/find" & -# --- history ------------------------------------------------------------------ - -printf '%s\n' "$selection" >> "$CACHE/io/files" - -printf '%s\n' "` - awk '!line[$0] { line[$0] = 1; print }' "$CACHE/io/files" | tail -`" > "$CACHE/io/files" - - # --- selection ---------------------------------------------------------------- selection="`{ @@ -48,7 +39,9 @@ selection="`{ grep "$MUSIC" "$CACHE/find" printf '# %s\n' man - grep '.[1-9](.gz)?$' "$CACHE/find" + IFS=: + find $MANPATH -name '*.[1-9]' -o -name '*.[1-9].gz' + unset IFS printf '# %s\n' files grep '[^/]$' "$CACHE/find"