I need to remove all http and https from txt file.
Like this:
http://ac.tecnicasdeinvasao.com
http://go.tecnicasdeinvasao.com
http://lp.tecnicasdeinvasao.com
https://ac.tecnicasdeinvasao.com
http://secreto.tecnicasdeinvasao.com
https://go.tecnicasdeinvasao.com
https://lp.tecnicasdeinvasao.com
https://secreto.tecnicasdeinvasao.com
To
ac.tecnicasdeinvasao.com
go.tecnicasdeinvasao.com
lp.tecnicasdeinvasao.com
ac.tecnicasdeinvasao.com
secreto.tecnicasdeinvasao.com
go.tecnicasdeinvasao.com
lp.tecnicasdeinvasao.com
secreto.tecnicasdeinvasao.com
I tryed using sed but without success.
awk
treats each line as arecord
, and eachrecord
has one or morefields
. Afield separator
tellsawk
what the field boundaries are. In this case, because we declared//
as thefield separator
, the characters to the left of thefield separator
is the first field, the chars to the right are the second field. Asawk
reads the line/record, eachfield
is stored in$1
(first record),$2
(2nd record), etc. This worked because we declared//
as thefield separator
, and printed the second field:$2
. Lots of good tutorials onawk
online. – Seamus Nov 17 '21 at 02:59