diff options
-rw-r--r-- | doc/code-vs-command | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/code-vs-command b/doc/code-vs-command new file mode 100644 index 000000000..b7ec0906c --- /dev/null +++ b/doc/code-vs-command @@ -0,0 +1,8 @@ +perl -pi -e \ + 's/\@code\{('"$(echo cp dd df dir dircolors du install ln ls mkdir mkfifo mknod mv shred touch vdir|tr ' ' '|')"')\}/\@command{$1}/' coreutils.texi + +perl -pi -e \ + 's/\@code\{('"$(echo cp dd df dir dircolors du install ln ls mkdir mkfifo mknod mv shred touch vdir|tr ' ' '|')"')\}/\@command{$1}/' coreutils.texi + +regex=$((textutils; shellutils) | tr -s ' ' '|') +perl -pi -e 's/\@code\{('"$regex"')\}/\@command{$1}/' coreutils.texi |