home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!hsdndev!news.cs.umb.edu!menjan
- From: menjan@cs.umb.edu (Men-Jan Lin)
- Newsgroups: comp.unix.shell
- Subject: How to port this sh script to csh script ?
- Message-ID: <MENJAN.93Jan10232159@ra.cs.umb.edu>
- Date: 11 Jan 93 04:21:59 GMT
- Sender: news@cs.umb.edu (USENET News System)
- Distribution: usa
- Organization: University of Massachusetts at Boston
- Lines: 19
- Nntp-Posting-Host: ra.cs.umb.edu
-
-
- Two questions for csh experts :
-
- 1. How to port this sh script to csh script ?
-
- #!/bin/sh
- while read line_by_line
- do
- echo "Do something for $line_by_line"
- done < input_file
-
- 2. Can I use "line" command in my previous example csh script ?
- If answer is 'Yes', then How ?
-
- Thank you very much.
-
- -Jane
-
- PS: What I want is processing input_file line by line.
-