I’m using nmap for network reporting with something like the below example:
nmap 192.168.1.0/24 -oG filename_$(date +'%d-%m-%Y-%T').txt
How do I add the network scanned into the name of the file created? So for example, the file created looks like 192.168.1.0/24_07-01-2022.txt
Thanks!