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.
awktreats each line as arecord, and eachrecordhas one or morefields. Afield separatortellsawkwhat the field boundaries are. In this case, because we declared//as thefield separator, the characters to the left of thefield separatoris the first field, the chars to the right are the second field. Asawkreads the line/record, eachfieldis 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 onawkonline. – Seamus Nov 17 '21 at 02:59