Bell 32V development
authorTom London <tbl@research.uucp>
Sun, 4 Feb 1979 23:20:54 +0000 (18:20 -0500)
committerTom London <tbl@research.uucp>
Sun, 4 Feb 1979 23:20:54 +0000 (18:20 -0500)
Work on file usr/src/cmd/news.sh

Co-Authored-By: John Reiser <jfr@research.uucp>
Synthesized-from: 32v

usr/src/cmd/news.sh [new file with mode: 0755]

diff --git a/usr/src/cmd/news.sh b/usr/src/cmd/news.sh
new file mode 100755 (executable)
index 0000000..d573c20
--- /dev/null
@@ -0,0 +1,18 @@
+NEWSDIR=/usr/news
+cd $NEWSDIR
+if [ $# = 0 ]
+then
+       echo News catalog :
+       ls -t
+else
+       for i in $*
+       do
+               if [ -f $i ]
+               then
+                       echo  ; echo $i news :
+                       cat $i
+               else 
+                       echo  ; echo \< News item \"$i\" not found \>
+               fi
+       done
+fi