Skip to content

Instantly share code, notes, and snippets.

@mojaveazure
mojaveazure / soNeedy.sh
Last active April 29, 2019 18:20
A simple script to copy files defined by a list in parallel
#!/bin/bash
set -e
set -u
set -o pipefail
# A simple script to find files listed in a text file and copy them elsewhere
# Written for Chaochih Liu
# Written by Paul Hoffman
@mojaveazure
mojaveazure / fakeHeader.sh
Last active October 16, 2018 21:57
A simple script to add the `@HD` header line to a SAM or BAM file in case it wasn't added at the time of creation.
#!/bin/bash
set -e
set -u
set -o pipefail
# Define the usage message
function usage() {
echo -e "\
Usage: ./fakeHeader.sh <option> <file> \n\