Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- case "$1" in
- "-r") echo "Nelle directory indicate ci sono `ls $* | grep -v "^ " | grep -v ":$" | grep -v "^$" | wc -l` files e cartelle.";;
- "-l") echo "Nelle directory indicate ci sono `ls $* | grep -v "^d" | grep -v "^ " | grep -v ":$" | grep -v "^$" | wc -l` files.";;
- *) echo "Errore, parametri errati!";;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement