Command line & Bash Scripting

Let's talk about command line  commands. We can go over the most common, plus your favorite commands.  We can try some bash scripts with some of the commands. If you have a favorite or useful script to share, please do share with the group.


Join or login to comment.

  • Julie B.

    Thanks to those who attended. It was a good meeting. I posted at clclinux.org an better explanation of example6.sh.

    1 · June 6

  • Julie B.

    Looking forward to tonights meeting.
    I have put the example files that I am using tonight at clclinux.org under Bash scripting. See new comment section. Click on the link it will take you to dropbox account. You should see Club-6-5-2014.tar file. Download this file. I will cover this again, at the meeting.

    The text file upload - isn't in right format. Ignore this text file.

    I thought this would help for discussion and save typing as we talk about these. Who knows what other things we will cover tonight.

    June 5

  • Bill N.

    off topic:
    Check out www.eff.org for their #ResetTheNet campaign. Take back your privacy. Lots of material to read. A lot of it is scary, and some of the solutions are wonderful. Give it a read.

    June 4

  • A former member
    A former member

    Here is a link from my favorite source "IBM developerWorks" "Bash scripting for beginning system administrators"
    http://www.ibm.com/developerworks/aix/library/au-getstartedbash/index.html?ca=drs

    "Bash by example, Part 1"
    http://www.ibm.com/developerworks/library/l-bash/

    "Speaking UNIX: More shell scripting techniques"
    http://www.ibm.com/developerworks/aix/library/au-speakingunix_shellscripttech/

    .... and the related wiki page
    http://wiki.bash-hackers.org/scripting/tutoriallist

    June 2

    • Izzy

      Nice. Thanks for the links

      June 2

  • A former member
    A former member

    Often, during system troubleshooting, I need to monitor /var/log files and tail the last one updated. Here is how:

    $ while true; do ls -ltr /var/log | tail -1 | awk '{print $9}' | xargs -i tail -n 10 /var/log/{}; sleep 5; done

    June 2

  • A former member
    A former member

    For more advanced users:

    "Defensive BASH Programming"
    http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/

    June 2

  • Izzy

    found this too if anyone is interested. http://steve-parker.org/sh/sh.shtml

    May 29

  • Julie B.

    I have posted a reference sheet at the club web-site:

    https://clclinux.org/node/54

    For those that would like to view my sources that I found helpful for command line commands.

    Be sure to bring your laptop, and we will wall through several examples.

    I will post my files, just before the meeting so that we all start with the same examples.

    If anyone else has example files to share, either post them here for others, or let me know and I will post them on the web-site.

    May 28

  • Bill N.

    ok about that beginner's guide to Bash Scripting link I posted earlier:

    quote "...there is a basic and advanced pdf at the top of that link, ignore that. It makes you fill out too much information just for the DL..."

    The quote is still valid. They ask too much for the free pdf. But I used a phony account that I employ for these kinds of things. I have a pdf copy of this article. It is e-reader friendly too (or so they claim). I'll put it on one of my readers and get to learning. Anyone who wants this book but doesn't want to fill out all of that information, message me and I'll try to get it to you somehow. Or I'll try to remember to bring my USB drives. I'll put it on one of those. You can get it at the next meeting.

    May 27

  • Izzy

    Thanks Bill. This actually will help me to start learning bash scripting since I have no idea how to use bash scripting.

    1 · May 12

    • Bill N.

      np. I'm in the same boat as you. This link seems noob-proof (meaning me). I think I'll give this page a thorough workout so I am slightly familiar with this by the time we meet. Looks like it was well written.

      May 12

  • Bill N.

    I'm new to this subject but not new to programming in general. I found this http://linuxconfig.org/bash-scripting-tutorial . I'll brush up on this page and hopefully that gets me up-to-speed for this meetup. Others, feel free to brush up as well.
    Note, there is a basic and advanced pdf at the top of that link, ignore that. It makes you fill out too much information just for the DL. The rest of the page looks legit though.

    May 12

11 went

People in this
Meetup are also in:

Create a Meetup Group and meet new people

Get started Learn more
Henry

I decided to start Reno Motorcycle Riders Group because I wanted to be part of a group of people who enjoyed my passion... I was excited and nervous. Our group has grown by leaps and bounds. I never thought it would be this big.

Henry, started Reno Motorcycle Riders

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy