summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-04-28 21:58:19 +0000
committerJim Meyering <jim@meyering.net>2002-04-28 21:58:19 +0000
commit57b792bb8a4e06de7601e05e4078397e63e5d96f (patch)
treea940f9424b8cfbd16cf122e3664b3c05840847d9 /doc
parent625cb8875673f820588710cac48af127f2f6847a (diff)
downloadcoreutils-57b792bb8a4e06de7601e05e4078397e63e5d96f.tar.xz
.
Diffstat (limited to 'doc')
-rw-r--r--doc/code-vs-command8
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