Re: [OT] sed
Pour les mots avec espaces :
cat pays | awk -F\t '{printf "INSERT INTO pays
VALUES('\'%s\'','\'%s\'');\n",$1,$2}' > pays.new
frederic massot a écrit :
> frederic massot wrote:
> >
> > La reponse en utilisant awk, merci a Sebastien.
> >
> > cat pays | awk '{printf "INSERT INTO pays
> > VALUES('\'%s\'','\'%s\'');\n",$1,$2}' > pays.new
> >
>
> L'enthousiasme m'a devance.
>
> Ca ne marche pas pour les mots comportants des espaces comme : American
> Samoa
>
> --
> ==============================================
> | FREDERIC MASSOT |
> | http://www.juliana-multimedia.com |
> | mailto:frederic@juliana-multimedia.com |
> ===========================Debian=GNU/Linux===
>
> --
> To UNSUBSCRIBE, email to debian-french-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to:
- Follow-Ups:
- Re: [OT] sed
- From: frederic massot <frederic@juliana-multimedia.com>
- References:
- [OT] sed
- From: frederic massot <frederic@juliana-multimedia.com>
- Re: [OT] sed
- From: frederic massot <frederic@juliana-multimedia.com>