~scripts
58 itemsDownload ./*

58 itemsDownload ./*

..
display
dzen2
nginx
tiling
vosh
4cdl
4trips
alarm
ambient
battery-monitor
checkit
cleverbot.py
clock
color-gen
colors-hex
colorscheme.sh
compton.sh
dailywall
dmenu
ffthumb
grid
gridmacro
gridmacro.kde
help
importw
indexer
install-all.sh
install-twily.sh
installng
mp3ogg
netspeed.sh
orage
pipes
pipes.x
pipewire_bt.sh
ports
rain
randwall
readystart.sh
rotate.sh
scan.sh
screencast
screencast2
scrot
scrotw
search
skull
slocker
startblender.sh
starwars
streamit
sumnum
synctimedate.sh
tty-colorize
usrmount
ytp
ytplay
zombie-restart.sh


scriptssearch
2 335•  7 years ago•  DownloadRawClose
7 years ago•  2 335

{}
#!/bin/bash
#
# Author:      Twily                           2016
# Description: Used for searching through irc logs.
# Usage:       $ ./search 'tag1|tag2' tag3 tag4 ...
#

DIR="."

multi() {
    if [ $# -gt 1 ]; then
        shift
        for var in "$@"; do
            str="$str grep -i $var |"
        done
    fi
    str="$str grep ''"
    eval $str
}
search() {
    find $DIR -type f | xargs grep -iE $1 | multi $@ | sort -r | less
}

search $@

exit 0

Top
©twily.info 2013 - 2024
twily at twily dot info



2 158 591 visits
... ^ v