(Related search suggestions will be prepared.)
#!/bin/bash inotifywait -m -e create --format '%f' /input/frf_folder/ | while read frf_file do if [[ $frf_file == *.frf ]]; then python3 frf2bin.py "/input/frf_folder/$frf_file" "/output/bin_folder/$frf_file%.frf.bin" fi done
For those who prefer a quick shell solution without programming, use a combination of awk and xxd :
(Related search suggestions will be prepared.)
#!/bin/bash inotifywait -m -e create --format '%f' /input/frf_folder/ | while read frf_file do if [[ $frf_file == *.frf ]]; then python3 frf2bin.py "/input/frf_folder/$frf_file" "/output/bin_folder/$frf_file%.frf.bin" fi done
For those who prefer a quick shell solution without programming, use a combination of awk and xxd :