Last active
February 2, 2018 00:58
-
-
Save hsiaoyi0504/bdeba0797fd890a3d320533da3387d71 to your computer and use it in GitHub Desktop.
Install NCBI EDirect(https://www.ncbi.nlm.nih.gov/books/NBK179288/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~ | |
perl -MNet::FTP -e \ | |
'$ftp = new Net::FTP("ftp.ncbi.nlm.nih.gov", Passive => 1); | |
$ftp->login; $ftp->binary; | |
$ftp->get("/entrez/entrezdirect/edirect.tar.gz");' | |
gunzip -c edirect.tar.gz | tar xf - | |
rm edirect.tar.gz | |
builtin exit | |
export PATH=$PATH:$HOME/edirect >& /dev/null || setenv PATH "${PATH}:$HOME/edirect" | |
./edirect/setup.sh | |
echo "export PATH=\$PATH:\$HOME/edirect" >> $HOME/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment