Script for importing information to an XML file
by hatfani from LinuxQuestions.org on (#4VFQY)
Hey everybody,
I have the command to count files in a specific folder:
find DIR_NAME -type f | wc -l
I wanted to know if there's any option to take the final number that I got, and import it to an XML file, and also to import the names of the first and the last files in the folder into the same XML file.
I would really like to know if there is any option to do so.
could someone please shed some light for me?
Thank you in advance!


I have the command to count files in a specific folder:
find DIR_NAME -type f | wc -l
I wanted to know if there's any option to take the final number that I got, and import it to an XML file, and also to import the names of the first and the last files in the folder into the same XML file.
I would really like to know if there is any option to do so.
could someone please shed some light for me?
Thank you in advance!