c++ - Search a file with a zimage file extension in Qt -


I am writing a program to upgrade the firmware using a flash drive. I need to upgrade the kernel with the image present in the flash device. But I am not getting any information on how to find a file with a zimage file extension in a directory. I'm new to QT and Linux, so I do not know that it is possible to get the file with a special format. Can anyone help me in this? Thanks in advance.

You can parse the output using the next script:

 < Code> #! / Bin / bash find / -name '* .zimage' | | Grep .zimage & gt; /tmp/zimage_files.txt   

Note that the above script is searching all the files and all paths, and the output is /tmp/zimage_files.txt . If you want something different, then you have to modify it a bit.

Comments