#! /bin/bash LISTE=$(cat /home/solar/documents/ISSUES/solar-orbiter-issues.csv | grep REBOOT | cut -d, -f1) for DATE in ${LISTE} do echo "=========================================" echo $DATE echo "=========================================" YMD=$(echo $DATE | tr -d "-") #python -m CCSDS /DATA/SOLAR/DATA/L0/$YMD/solo_L0_*${YMD}_*.bin | egrep "SWA_TM_SCI_PAS|BOOT_EVEN" | tail -10 python -m CCSDS /DATA/SOLAR/DATA/L0/$YMD/solo_L0_*${YMD}_*.bin | grep "BOOT_EVEN" done