Search Results

Search: Posts Made By: enginama
2,717
Posted By Don Cragun
If you are looking for href strings containing...
If you are looking for href strings containing .pdf (lowercase only), you need to change \.[pdf] to .pdf. The expression you have is looking for strings containing .p, ,d or .f. If you wanted a...
2,717
Posted By RavinderSingh13
Hello enginama, Could you please try...
Hello enginama,

Could you please try following and let me know if this helps, it was having missing $file. Because I had not tested it.

for file in *.html
do
awk -vIMAGE="images\/" '/^img...
2,717
Posted By Peasant
Perhaps a this sed in a for loop written here : ...
Perhaps a this sed in a for loop written here :

sed 's#\(img src=\)"\(.*\.[jgp][pin][gf]\)"#\1"\2/"#g' "$file" > "$file.tmp" && mv "$file.tmp" "$file"


Above will not match case sensitivity,...
2,717
Posted By RudiC
Peasant's second, corrected sed command does...
Peasant's second, corrected sed command does what you expectsed 'p; s#\(img src=\)"\(.*\.[jgp][pin][gf]\)"#\1"./images/\2"#g' file1
<a href="https://www.facebook.com/pages/Charity/67484895"><img...
Showing results 1 to 4 of 4

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