On Mac or Linux, how to make a script/pipeline on the command-line in bash.
Blog post: https://omgenomics.com/blog/writing-b...
Interactive tutorial: https://sandbox.bio/tutorials/bash-sc...
Code:
#!/usr/bin/env bash
NAME=${1?Error: no name given}
NAME2=${2:-friend}
echo "HELLO! $NAME and $NAME2"
Run as:
./myscript Tom
or
./myscript Tom Jerry
See what we've been up to at https://omgenomics.com
Correction:
02:40 To get out of less, just press the "q" key.
On this page of the site you can watch the video online How to write a bash script with a duration of hours minute second in good quality, which was uploaded by the user OMGenomics 24 April 2017, share the link with friends and acquaintances, this video has already been watched 161,956 times on youtube and it was liked by 3.7 thousand viewers. Enjoy your viewing!