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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Taking a line form a file

Status
Not open for further replies.

24

Technical User
Aug 15, 2001
43
does anyone know if it possible to pull a line out of a file and move it into another file using a login script.
 
:: Here is a way to combine files
:: the problem here is that you will get all the lines
:: from both files into the third file and the lines end
:: a carrage return, so you can not use this method
:: to build any single line out of 2 files

echo first line >> c:\firstline.txt
echo second line >> c:\secondline.txt
copy firstline.txt + secondline.txt bothlines.txt
type bothlines.txt

:: File bothlines.txt will have 2 lines in it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top