{width=300px}
(Thank goodness, no need for Perl anymore :-D )
Advances in high-throughput methods have transformed modern biology into an incredibly data-rich science.
Biologists who never thought they needed computer programming skills are now finding that using an Excel spreadsheet is simply not enough.
iterm2 on OSX.lspwdcd
cd ~cd ./..ls
ls -als -lls -lhman help
mkdir create a dir
mkdir -p Temp1/Temp2 touch create a file cp copy mv moverm is an atom bomb: it deletes forever, and does not ask for confirmation.rm command. Are you scared yet? You should be.”rm -inano, less and more …*.txtWith some extra’s
| The absolute basics | File control | Viewing, creating, or editing files | Misc. useful commands | Power commands | Process-related commands |
|---|---|---|---|---|---|
| ls | mv | less | man | uniq | top |
| cd | cp | head | chmod | sort | ps |
| pwd | mkdir | tail | source | cut | kill |
| rmdir | touch | wc | tr | ||
| rm | nano | grep | |||
| | (pipe) | sed | ||||
| > (write to file) | |||||
| < (read from file) |
“pipe-ing” | connects the output of one command to the input of the next command → Allows compressed programming.
head myfile | head | nano
Use cat to read the entire file’s content into another command
cat myfile | grep ">" | wc -l
grep ">" your.fastagrep -v ">"wc :-Dhead and tailgrep "^ATG.*ACACAC.*TGA$" chr1.fasta
Edited from Keith Bradnam & Ian Korf’s excellent online book: Unix and Perl Primer for Biologists.