Learn faster and stay on-track by joining this free class with other self-learners.
|
Bash ScriptingClass length: 18 weeks. Start anytime. Creator: kday Status: Established |
Join this class! |
|
Lesson 3: Assignment 1: Problem set 1Do all of the examples throughout Chapter 4 in Bash Cookbook by O'Reilly. To submit the homework, just leave a comment saying that you completed it and mention any problems you had or any cool things you learned. Don't print out your whole session history, it gets really long really fast. Do post code specific examples that you want to discuss. If you copy and paste any of your bash history, make sure that you don't post anything sensitive. Create dummy directories for working with files, don't post any passwords, etc. The assignment should take about 30 to 45 minutes to complete. Homework Submissions6 total/usr/bin/env shfor SCRIPT in /sbin/*; do if [ -f $SCRIPT -a -x $SCRIPT ]; then echo "$SCRIPT" fi done Completed work. I have worked with the && || nohup has come in handy when needing to leave and have the job continue. No comments. Sign up or log in to comment Weird I knew about using && || and & in scripts and commands, but never came across running commands sequentially separated by a semi-colon. Weird what gaps we have in our knowledge. No comments. Sign up or log in to comment Nice chapter. I've been looking for something similar to No comments. Sign up or log in to comment Discussion in 4.8.3 has a nice one-liner for running a command and verbosely exiting if it fails:
No comments. Sign up or log in to comment easy chapter No comments. Sign up or log in to comment |
No comments. Sign up or log in to comment