Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GNU nano 2.5.3 Plik: slownik.sh Zmodyfikowany
- #!/bin/bash
- if [ ! -f "dictionaryen.txt" ]
- then
- echo "Nie ma slownika."
- exit
- fi
- if [ $# -lt 1 ]
- then
- echo "Nie podano slowa. Mozesz wpisac je teraz:"
- read word
- else
- word=$1
- fi
- szukane=`grep -E "^$word$" dictionaryen.txt`
- #if [ "$word" == "^*[^a-c]*$" ]
- #then
- # echo "Blad."
- # exit
- #fi
- if [ "$szukane" == "" ]
- then
- echo "Brak wynikow."
- else
- echo "Znaleziono takie slowa pasujace do podanego argumentu:"
- echo $szukane
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement