Tero Karvinen - Articles - Downloads - Courses - Contact

==> hello <==
#!/bin/bash

echo "Hello, your name is ";


==> fileinfo <==
#!/bin/bash

for F in $*
do
        echo "=== $F ==="
        ls -l "$F"
        file "$F"
        echo
done


==> outputtovar <==
#!/bin/bash

FOO=$(hostname)
echo $FOO

$ nano foo
$ chmod a+x foo
$ ./foo

Last modified: 2007-10-08. Permanent url: http://www.iki.fi/karvinen/notes_about_shell_scripting_on_linux_basics_2007_w40.html

Tero Karvinen www.iki.fi/karvinen - Top - Validate HTML - Validate CSS