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 , , , | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects