pause search script
hi there,
I've writtern a short script for searching though my DG blacklists #!/bin/bash Z=search echo "Enter the domain name you want to search for:" printf "Search" read Z if [ "$Z" = "" ]; then Z=search fi echo "" grep -r $Z /etc/dansguardian/blacklists/* but the problem is sometimes this can bring back a huge result. I was wondering if someone knew of a way I could get it to display like 30 lines at a time? |
Pipe the output to less?
|
hi
If I have understood your point correctly than i would suggest to use more to display it in a screen feeted way. grep -r $Z /etc/dansguardian/blacklists/* | more see man page of "more" for more options. hope helps. |
thanks, debulu that did the trick!
#!/bin/bash Z=search echo "Enter the domain name you want to search for:" printf "Search" read Z if [ "$Z" = "" ]; then Z=search fi echo "" grep -r $Z /etc/dansguardian/blacklists/* | more |
All times are GMT -5. The time now is 05:29 AM. |