Friday, October 11, 2024

Re: Console hints and question

Thanks for the time and idea.

Played with it but unfortunately I'm not skilled with sed and I
should need further help or reference to solve the quiz.

Drilling into details the content of text.txt appears to be processed
as list of commands although I firstly produced the file on the fly.

-Dan


Manuel Solis <lossolises@gmail.com> wrote:

> Hello Dan,
>
> Perhaps one simple solution would be using sed(1),
>
> Suppose you have a file named 'test.txt' and the list you provided is
> there,you could
> run in shell:
>
> <code> sed 's/celere.com/elettronica.lol/p' test.txt > results.txt
> </code>
>
> Hope this helps you
>
> Manuel
>
> El vie, 4 oct 2024 a las 10:39, Dan (<dan@nnnne-o-o-o.com>) escribió:
>
> > Hello,
> >
> > About *shelling*, I found two useful tricks to edit the filesystem.
> >
> > To speed up editing on folder file list:
> > nano *.xml (CTRL+S, CTRL+X)
> >
> > Recursively into subdirs:
> > nano `find . -name *.xml` (CTRL+S, CTRL+X)
> >
> > The problem comes when given a filesystem structure like:
> >
> > xml1/email/posta@celere.com
> > xml2/email/posta@celere.com
> > xml3/email/posta@celere.com
> > xml4/email/posta@celere.com
> > xml5/email/posta@celere.com
> > xml6/email/posta@celere.com
> > xml7/email/posta@celere.com
> >
> > I want to rename with one unique shell commmand all the wrong
> > emails to posta@elettronica.lol
> >
> > Do you have a tip to exchange?
> >
> > Thanks!
> >
> > -Dan
> >
> >
>

No comments:

Post a Comment