Re: but I want the GNU versions of packages
Morgon Kanter <morgon@surgo.net> a tapoté :
> This one time, at band camp, Dan Jacobson <jidanni@jidanni.org> wrote:
> > Last year I discovered mawk sitting there until I banished it away with
> > apt-get install gawk.
>
> Mawk is smaller and faster, so it makes sense that it's the default
> awk for a base system. Even in the GNU installer packages for the Hurd,
> the default awk is mawk rather than gawk.
moa@dionysos:~$ mawk --help
bash: mawk: command not found
moa@dionysos:~$ mawk --help
mawk: not an option: --help
moa@dionysos:~$ mawk -help
mawk: not an option: -help
moa@dionysos:~$ mawk -h
mawk: not an option: -h
moa@dionysos:~$ mawk -?
mawk: not an option: -?
moa@dionysos:~$ mawk
Great, for a default application...
(ok, man mawk...)
I wonder what makes the following more convenient for a default
application to me...
moa@dionysos:~$ gawk --help
Usage: gawk [style des options POSIX ou GNU] -f fichierprog [--] fichier ...
Usage: gawk [style des options POSIX ou GNU] [--] 'program' fichier ...
Options POSIX: options de long format GNU:
-f fichierprog --file=fichierprog
#t-F fs --field-separator=fs
#t-v var=valeur --assign=var=valeur
-m[fr] valeur
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables[=fichier] --dump-variables[=fichier]
-W gen-po --gen-po
-W help --help
-W lint[=fatal] --lint[=fatal]
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile[=fichier] --profile[=fichier]
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W version --version
Pour rapporter une anomalie, voir la rubrique « Bugs » dans « gawk.info »
dans la section « Reporting Problems and Bugs » de la version imprimée.
gawk est un analyseur de patron et un traitement de langage.
Par défaut, il lit de l'entrée standard et écrit sur la sortie standard.
Exemples:
gawk '{ sum += $1 }; END { print sum }' fichier
gawk -F: '{ print $1 }' /etc/passwd
--
Mathieu Roy
Homepage:
http://yeupou.coleumes.org
Not a native english speaker:
http://stock.coleumes.org/doc.php?i=/misc-files/flawed-english
Reply to: