Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Text file and counting Lines

Status
Not open for further replies.

akki007

Programmer
May 22, 2003
55
GB
I am trying to carry out the following process from within a unix script....

1. Create a new Text file containing a heading (Text.txt)
2. Count the number of rows in a seperate file (File.dat)
3. Store this figure in a variable
4. Insert this figure into the previously created text file
5. Save the text file

Any thoughts

Thanks
 
you are very welcome!

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
The part where I specify the filenames, can I put full directory paths as well as a filename?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top