simple bash script in Linux

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
12,557
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 5, 2009

a simple bash script in Linux
that shows how to make a input and make a IF else on it

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (peertop)

  • I did as you did with the scripting and i run it but it didn't execute the lynx. instead it exited with the the comment "there is nothing else to do" above that is 'G' cannot be found

  • @sirbobbyuk

    Lynx is a program and not a command.

    try to install it before you run it.

    sudo apt-get install lynx

    if you use redhat or fedora. install it with yum .

    I use ubuntu and use apt.

  • how you make a background image?

    or what for a programm you use in the video?

    the nano command?

    or a diffrent programm

    Please Answer So Fast It Go!! =)

    greetz Headache videos =)

  • OS = Ubuntu

    Terminal = gnome terminal with transparenty on (look in the settings)

    image = current wallpaper

    nano = (terminal) texteditor

    capture program = reccordmydesktop

    So you have right, Its an debian system and lynx is an web browser for bash.

  • put in the end of if at the bottom on your script echo please select 1 or 2 read number if [ "$number" = "1" ]; then echo "11111" else if [ "$number" = "2" ]; then echo "22222" else echo you did not select 1 or 2 fi fi
see all

All Comments (34)

Sign In or Sign Up now to post a comment!
  • @mshemuni

    #! is sha-bang symbol

    /bin/sh is the (absolute) path to the interpreter program

    renders the script portable to non-Linux machines, though you sacrifice Bash-specific features

  • Why he typed on top "#!/bin/sh" for bash scripting.

    I think "#!/bin/bash" is correct line for bash scripting.

  • @REPODONE if you have run permissions to it then you can run it.

    seriously people, learn to crawl before you try to run(learn basic linux before trying to be leethaxor).

  • in backtrack u can just run a bla.sh without chmod RIGHT???

  • @peertop yep i have install lynx, but im getting an error message stating [:14: missing]. I have checked the script against what you wrote and there does not seem to be an erro.

  • @JoxeAlavarado Vi is hard to use for me... I like that one better because the shortcuts are shown below.

  • This is so awesome... I did it in windows alot but Linux is made for this kind of amusement. This is so frikin awesome!!!12!!!?!@!!

    *head slpodes*

  • Learn to use VI EDITOR people!!

  • OS=red hat,

    how would I get a background in the terminal window?

    Nice vid by the way.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more