notes_about_shell_scripting_on_linux_basics_2007_w40

==> 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


Posted in Old Site | Tagged , , , | Comments Off on notes_about_shell_scripting_on_linux_basics_2007_w40

Comments are closed.