Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/bin/bash #Copyright Kris Occhipinti 2018 #http://filmsbykris.com #license GPLv3 - https://www.gnu.org/licenses/gpl.txt l=$(ls *.jpg) tmp_i="" i="" viewer="feh" clear echo "$l" function prompt(){ clear output="$(echo "$l"|grep -i "$i")" count="$(echo "$l"|grep -i "$i"|wc -l)" echo "$count results for $i" echo "====================================" echo "$output" } while true; do read -rsn1 input i+=$input prompt if [ "$output" == "" ] then echo "No Entries Found for ${i}..." echo "Clearing list" i="$tmp_i"; sleep 1 prompt elif [ $count -eq 1 ] then clear echo "$output is found" $viewer "$output" i="" prompt #break fi tmp_i="$i" done
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)