Exit Bash Script When Any Command Fails
...with a single line using the set builtin command with the -e option. #1------------------------------...---------------------- #With a subs exit_on_error() { exit_code=$1 last_command=${@:2}...1547 days ago
1541 days ago
Installing docker for Bioinformatics on Ubuntu !
...sh # Executing docker install script, commit: 442e66405c304fa92af8aadaa1d9b31bf4b0ad94 + sudo -E sh -c apt...go1.12.17 Git commit: afacb8b7f0 Built: Wed Mar 11 01:25:46 2020 OS/Arch:...1540 days ago
Perl script to reads and extract webpage contents !
use 5.010; use strict; use warnings; use WWW::Mechanize; my ($url) = @ARGV; die "Usage: $0 URL\n" if not $url; my $w = WWW::Mechanize->new; $w->get($url); say $w->content; #Run #jit@jit-HP-Pro-3335-MT:~/Downloads/testDock$ perl web.pl https://bioinformaticsonline.com1540 days ago
Pack a perl program with their dependencies on Ubuntu !
...4 libgetopt-argvfile-perl all 1.11-3 [26.4 kB] Get:2 http://....../0-libgetopt-argvfile-perl_1.11-3_all.deb ... Unpacking l...google_ad_client: "ca-pub-1038265148932113", enable_...joker Rooby Yadav@Rooby19 eliabrodsky@eliabrods...1538 days ago
Commands to install conda in Ubuntu !
...6ed49b834a6bb73a Anaconda3-2019.03-Linux-x86_64.sh jit@ji...ons (such as SHA256 and RIPEMD160), a nd various encryption...b0_0 ... installing: fribidi-1.0.5-h7b6447c_0 ... installin...7_0 ... installing: bleach-3.1.0-py37_0 ... installing: cly...1538 days ago
Commands to install Statistics::R module in Ubuntu !
...be used. Do you want to continue? [Y/n] Y\ Get:1 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 r-base all 3.4.4-1ubuntu1 [9,312 B] Get:2 http:...reparing to unpack .../libstatistics-r-perl_0.24-1_all.deb ... Unpacking libsta...1538 days ago
1536 days ago
Install Ragout genome assembler
...tor-4.3.0 | py37_0 15 KB ragout-2.3...oconda sibelia-3.0.7 | he1b5a44_2 24.8 MB biocon...or 4.4.0-py37_1 --> 4.3.0-py37_0 Proceed...1491 days ago
1489 days ago