Extract lines from file, add to new files

Mirko mirkok.lists at googlemail.com
Thu Jan 11 15:25:26 EST 2024


Am 11.01.24 um 20:53 schrieb Rich Shepard via Python-list:
> On Thu, 11 Jan 2024, Piergiorgio Sartor via Python-list wrote:
> 
>> Why not to use bash script for all?
> 
> Piergiorgio,
> 
> That's certainly a possibility, and may well be better than python 
> for this
> task.
> 
> Thank you,
> 
> Rich

awk '/@/ {print >>"emails.txt";next};NF{print >>"salutation.txt"}' 
input.txt


SCNR ;-)


More information about the Python-list mailing list