Issue
I know you can find the extension with
file *.myext
But I'm wondering if I can write into my magic file a line which for example return a success message on all the ".42" ex : myfile.42
imagine a folder with the following files
- test1.42
- test2.kk
- test3.42
what should be the content of my magic file in order to make a success only on test1.42 and test2.42
I tried that for the moment
>0xA2 string 42 success
Solution
linux/unix doesn't care about filename extensions, magic numbers represents first bytes of file which are used to determine type of file.
Answered By - Nahuel Fouilleul Answer Checked By - Robin (WPSolving Admin)