[Linux-Biella] find, exec e script
Paul TT
paultt a bilug.linux.it
Gio 4 Maggio 2006 11:16:53 CEST
Paolo Ciarrocchi wrote:
> On 5/3/06, Paolo Ciarrocchi <paolo.ciarrocchi a gmail.com> wrote:
>
> (for file in /boot/vmlinuz*; do
> if [ -L "$file" ]; then
> echo -n "$file -> `readlink $file`"
> fi;
> done) | zenity --text-info --title "Symbolic links found" --width=400 &
>
> running_kernel=$(uname -r)
>
> kernel=""
> kernel=$((for file in /boot/vmlinuz*; do
> if [ -f "$file" ]; then
if [ -f "$file" -a ! -L "$file" ]; then
> echo "$file"
> fi;
> done)| zenity --list --title "Finding all installed kernels..."
> --text "You are currently running "$running_kernel --column "kernels
> found")
>
> Il secondo ciclo pero' non mi funziona, mi mostra tutti i file, link
> compresi .-(
>
>
>
> --
> Paolo
> http://paolociarrocchi.googlepages.com
> _______________________________________________
> Linux mailing list
> Linux a ml.bilug.linux.it
> http://hobbit.bmm.it/mailman/listinfo/linux
>
>
--
Vista should not be confused with Windows Longhorn, the codename for
Macintosh OS 10.4 "Tiger", released in April 2005.
Maggiori informazioni sulla lista
Linux