projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8993504
)
BSD 2 development
author
Bill Joy
<wnj@ucbvax.Berkeley.EDU>
Wed, 9 May 1979 03:44:45 +0000
(19:44 -0800)
committer
Bill Joy
<wnj@ucbvax.Berkeley.EDU>
Wed, 9 May 1979 03:44:45 +0000
(19:44 -0800)
Work on file src/ctags.sh
Synthesized-from: 2bsd
src/ctags.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/src/ctags.sh
b/src/ctags.sh
new file mode 100755
(executable)
index 0000000..
6d9c26a
--- /dev/null
+++ b/
src/ctags.sh
@@ -0,0
+1,11
@@
+# ctags
+# (c) 1979 Regents of the University of California
+grep '^[a-z].*)$' $* >/tmp/$$
+ed - /tmp/$$ << 'EOF'
+1,$s/(.*//
+1,$s/\(.*\):\(.*\)/\2 \1 \/^\2\//
+w
+q
+'EOF'
+sort -d /tmp/$$ | uniq >tags
+rm /tmp/$$