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:
9c136ee
)
BSD 2 development
author
Bill Joy
<wnj@ucbvax.Berkeley.EDU>
Wed, 9 May 1979 03:44:14 +0000
(19:44 -0800)
committer
Bill Joy
<wnj@ucbvax.Berkeley.EDU>
Wed, 9 May 1979 03:44:14 +0000
(19:44 -0800)
Work on file src/astags.sh
Synthesized-from: 2bsd
src/astags.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/src/astags.sh
b/src/astags.sh
new file mode 100755
(executable)
index 0000000..
03149d0
--- /dev/null
+++ b/
src/astags.sh
@@ -0,0
+1,11
@@
+# astags
+# (c) 1979 Regents of the University of California
+grep '^[a-zA-Z_].*:' $* >/tmp/$$
+ex - /tmp/$$ << 'EOF'
+1,$s/:[^:]*$//
+1,$s/\(.*\):\(.*\)/\2 \1 \/^\2\//
+w
+q
+'EOF'
+sort -d /tmp/$$ | uniq >! tags
+rm /tmp/$$