Your task is to locate every file in the current working directory and all of its subdirectories whose base filename contains at least one numeric digit (0-9). Do not include directories in the results. Produce a concise report listing the relative paths to all matching files, one per line, and save it to a file named results.txt in the current directory. The list should be sorted lexicographically.
Steps:
Use a portable shell command that recursively searches for file names containing digits.
Ensure only files are listed (not directories).
Save the output to ./results.txt with one path per line, in sorted order.
Optional but recommended:
Show the exact command you used and a short justification.
If you need to create a tiny helper script for clarity, you may, but deliver only the results and the path to the command.
Deliverables:
results.txt containing the sorted list of matching file paths (relative to the current directory).
A brief note with the exact command used to generate the file.
Hints:
Use a pattern that matches any file name containing a digit, e.g. [0-9]