I have file called ips.txt output like this:
4.4.4.2/24
3.3.3.3/26
2.2.4.5/26
the text file has more than 1000 lines I am adding "0"
at end of each line.
I wanted to look like this using perl:
4.4.4.2/24 0
3.3.3.3/26 0
2.2.4.5/26 0
ands so on, any ideas?
this must be a stupid question, I am newbie in perl.
I have a variable called
$email = "mail: firstname.lastname@domain.com";
I want to return just firstname.lastname@domain.com and store
it in another variable called $email2.
I know it's a perl regular expression but I have no clue.
thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.