Search Results

Search: Posts Made By: phil_heath
4,545
Posted By bartus11
Try: split -dl500000 -a1 file fileThis will...
Try: split -dl500000 -a1 file fileThis will create file0, file1, ..., each having 500000 lines or less.
4,545
Posted By verdepollo
Take a look at split. E.g: split -l 500000...
Take a look at split. E.g:
split -l 500000 infile
1,876
Posted By in2nix4life
perl -e 'while(<>) {@words=split; foreach $w...
perl -e 'while(<>) {@words=split; foreach $w (@words) {$w=~s/\.$//;print "$w\n" if $w=~/.[@]./}}' infile
1,876
Posted By rdrtx1
try: perl -e 'while(<>) {@words=split; foreach...
try:
perl -e 'while(<>) {@words=split; foreach $w (@words) {print "$w\n" if $w=~/.[@]./}}' infile
1,876
Posted By Chubler_XL
Try this: grep -oiE...
Try this:

grep -oiE '\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b' infile
1,876
Posted By Yoda
Will this serve your purpose? awk ' { for(i=1;...
Will this serve your purpose?
awk ' { for(i=1; i<=NF; i++) { if($i ~ /@/) print $i } } ' filename
853
Posted By joeyg
what about the tr command
tr -d '"'
should delete the " character
853
Posted By brianjb
sed -e 's/\"//g' filename > newfile or...
sed -e 's/\"//g' filename > newfile


or for inline editing:

sed -i -e 's/\"//g' filename
Showing results 1 to 8 of 8

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