Advertisement
Guest User

Es4

a guest
Oct 30th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #! /bin/bash
  2. case "$1" in
  3. "-r") echo "Nelle directory indicate ci sono `ls $* | grep -v "^ " | grep -v ":$" | grep -v "^$" | wc -l` files e cartelle.";;
  4. "-l") echo "Nelle directory indicate ci sono `ls $* | grep -v "^d" | grep -v "^ " | grep -v ":$" | grep -v "^$" | wc -l` files.";;
  5. *)    echo "Errore, parametri errati!";;
  6. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement