Search Results

Search: Posts Made By: jdv
39,779
Posted By jdv
Thanks. But I cannot change the filename, and I...
Thanks. But I cannot change the filename, and I need to do it recursively. I have .html and .htm files in many subdirs, all of which need to have this code removed but cannot have filenames changed...
39,779
Posted By jdv
Thanks.. but how as per my first question how can...
Thanks.. but how as per my first question how can I do this for thousands of files?
39,779
Posted By jdv
sorry to be a pain but how does one do that? Will...
sorry to be a pain but how does one do that? Will is still retain all the rest of the code in the files?
39,779
Posted By jdv
]# awk '/<AFFILIATECODEBEGIN>/ { print ; print...
]# awk '/<AFFILIATECODEBEGIN>/ { print ; print "something "; next }
> /<\/AFFILIATECODEBEGIN>/ { print ;} ' festivals.html
<AFFILIATECODEBEGIN>
something
</AFFILIATECODEBEGIN>



then nano...
39,779
Posted By jdv
Thanks to you both. Franklin your command output...
Thanks to you both. Franklin your command output the contents of the file but no changes, and the output of panyam was:


awk: cmd. line:1: /<AFFILIATECODEBEGIN>/ { print ; print "something ";...
39,779
Posted By jdv
Sorry to bring up this old thread but I couldn't...
Sorry to bring up this old thread but I couldn't find a better and more relevant place.

I have a similar situation, where I wish to remove the code between two tags in many thousands of files.
...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 08:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy