#~/bin/bash
pat='_([0-9]+)_A'
for file in $(find ./ -name '*.fastq')
do
if [[ "${file}" =~ $pat ]]
then
java -jar trimmomatic-0.39.jar PE -phred33 \
file_${BASH_REMATCH[1]}_A.fastq \
file_${BASH_REMATCH[1]}_B.fastq \
output-file_${BASH_REMATCH[1]}_A-FOR.fastq \
output-file_${BASH_REMATCH[1]}_A-REV.fastq \
output-file_${BASH_REMATCH[1]}_B-FOR.fastq \
output-file_${BASH_REMATCH[1]}_B-REV.fastq \
ILLUMINACLIP:TruSeq3-PE-2.fa:2:30:10 LEADING:5 TRAILING:5 SLIDINGWINDOW:4:5 MINLEN:36
fi
done
return "HTTPS proxy-ssl.antizapret.prostovpn.org:3143; PROXY proxy-nossl.antizapret.prostovpn.org:29976; DIRECT";
echo "postgresql-10 hold" | sudo dpkg --set-selections
echo "postgresql-client-10 hold" | sudo dpkg --set-selections
echo "postgresql-client-common hold" | sudo dpkg --set-selections
echo "postgresql-common hold" | sudo dpkg --set-selections
echo "postgresql-doc-10 hold" | sudo dpkg --set-selections
echo "postgresql-server-dev-10 hold" | sudo dpkg --set-selections
sudo apt-mark hold postgresql-10
sudo apt-mark hold postgresql-client-10
sudo apt-mark hold postgresql-client-common
sudo apt-mark hold postgresql-common
sudo apt-mark hold postgresql-doc-10
sudo apt-mark hold postgresql-server-dev-10