home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5334 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  807 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!hsdndev!news.cs.umb.edu!menjan
  2. From: menjan@cs.umb.edu (Men-Jan Lin)
  3. Newsgroups: comp.unix.shell
  4. Subject: How to port this sh script to csh script ?
  5. Message-ID: <MENJAN.93Jan10232159@ra.cs.umb.edu>
  6. Date: 11 Jan 93 04:21:59 GMT
  7. Sender: news@cs.umb.edu (USENET News System)
  8. Distribution: usa
  9. Organization: University of Massachusetts at Boston
  10. Lines: 19
  11. Nntp-Posting-Host: ra.cs.umb.edu
  12.  
  13.  
  14. Two questions for csh experts :
  15.  
  16. 1. How to port this sh script to csh script ?
  17.  
  18. #!/bin/sh
  19. while read line_by_line 
  20. do
  21.     echo "Do something for $line_by_line"
  22. done < input_file
  23.  
  24. 2. Can I use "line" command in my previous example csh script ?
  25.    If answer is 'Yes', then How ?
  26.  
  27. Thank you very much.
  28.  
  29. -Jane
  30.  
  31. PS: What I want is processing input_file line by line.
  32.