Search Results

Search: Posts Made By: jozo95
11,490
Posted By Aia
Any href: perl -nle...
Any href:
perl -nle 'while(/(href="[^"]*")/g){print $1}' curl_href
[...]
href="#"
href="#"
href="#"
href="#"
href="#"...
11,490
Posted By RavinderSingh13
Hello jozo95, Sorry I haven't seen links...
Hello jozo95,

Sorry I haven't seen links without <img, so only it didn't match it properly.
Could you please try following and let me know if this helps you.

awk -F"[><]"...
1,957
Posted By RudiC
Try sed...
Try sed 's/[^<-]*\([-<>:]*\)[^<-]*\([-<>:]*\).*/\1 \2/' file
<-::: <-:::
<-:: <-:::
<-::: <-:::
->::: <-:::
->:: ->:::
1,957
Posted By RudiC
sed -n switch off default print ...
sed
-n switch off default print
E sw. on extended regexes
's substitute command
/^ start of line
[^-<>]* any sequence of non "-",...
1,957
Posted By RudiC
If your sed allows for EREs, trysed -nE...
If your sed allows for EREs, trysed -nE 's/^[^-<>]*|[^:]*[:-<>]*[^:]*$//gp' file
<-:::
<-::
<-:::
->:::
->::
Showing results 1 to 5 of 5

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