[c shell] printing out each line in a file
Hi. I want to know how to print out each line in a file. Thanks!
|
cat file
where file is the file you want to look at. Or use a pager. less file or more file or (if you have it) most file |
sorry.. i wanted to print out each line of a file and save it into a variable so if i had a file with a word on each line:
monday is yesterday. tuesday is today. wednesday is tomorrow. i want to put each of these lines into a variable... e.g. variable = monday is yesterday. and so on putting each of the lines into that or a different variable. how would i do that? |
Code:
#!/bin/bash |
that is just perfect! thanks!
|
All times are GMT -5. The time now is 11:47 PM. |