LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to delete the lines in xml FILES (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-delete-the-lines-in-xml-files-614796/)

ragavendran31 01-19-2008 01:15 PM

Unable to delete the lines in xml FILES
 
Hi ,

I want to delete first 5 lines and last 5 lines from multiple XML FILES.

I am able to do it for single file but not for multiple files.

Any help would be really appreciated.

Cheers,
Ragavendran R

colucix 01-19-2008 01:24 PM

It depends on which method you chose to edit files. If you use sed, it can manage multiple files in a single command line. In alternative you can
1. use a for loop over a list of files
2. use find with the -exec option or in conjunction with xargs.


All times are GMT -5. The time now is 05:50 PM.