names=`awk '{print $9}' PMZ_genes.gff3.txt | grep -oP ";\KName=[^;]+" | uniq`
for pmz in `awk '{print $9}' PMZ_genes.gff3.txt | cut -c4-14 | uniq`
do
read -r
echo "Symbols $pmz correspond to $REPLY"
done <<< "$names"
echo -e '{\n\t"data": ['
ps axho comm --sort -rss | head -5 |
while read -r proc
do
echo -ne '\t\t{\n\t\t\t"{#PROCNAME}":'
echo " \"$proc\""
echo -e '\t\t},'
done
echo -e '\t]\n}'
echo ${string[@]} | grep -E -o -z "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" | tr "\0" \; | sed -r 's/(.*)./\1\n/'
sed -re 's/(.*)_.*/\1/' -e 's/(.*)\-[0-9]+$/\1/' <<< 'aaa_bbb_ccc_800x600.jpg'
sed -re 's/(.*)_.*/\1/' -e 's/(.*)\-[0-9]+$/\1/' <<< 'vvv_xxx-yyy_zzz_xxx-1_800x600.webp'
sed -re 's/(.*)_.*/\1/' -e 's/(.*)\-[0-9]+$/\1/' <<< 'pict3_480x300.jpg'
sed -re 's/(.*)_.*/\1/' -e 's/(.*)\-[0-9]+$/\1/' <<< '3_480x300.jpg'
find /var/www -type f -regex ".*/modified/[^/]+\.jpg" | while read -r path; do name="${path##*/}"; [ ! -f "${path%modified/*}${name%%_*}_parent.jpg" ] && rm -f "$path"; done
read -p "Number of ports: "
for (( i = 0; i < $REPLY; i++ ))
do
read -p "Input port: " ports[i]
done
echo ${ports[@]}