This code was written to extract multiple .tar files to another location and woks fine
ls -1 ${short_filename} \
| while read file; do \
tar -zxvf "$file" -C ${pentaho_temp_path}/${sessionkey}; \
done
I want to do the same for .gz files on a Linux machine. My files have no whitespace in their names and they look like this:
xport_RAN_Maa_LIM_10.93.217.170_20220629030929.xml.gz
xport_RAN_Maa_LIM_10.93.217.170_20220630030936.xml.gz
xport_RAN_Mau_MPU_10.188.83.138_20220629031403.xml.gz
xport_RAN_Mau_MPU_10.188.83.138_20220630031444.xml.gz
Asked by Wessley
(21 rep)
Jul 1, 2022, 09:10 AM
Last activity: Jul 2, 2022, 09:00 PM
Last activity: Jul 2, 2022, 09:00 PM