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

INSERTING A NEW LINE

Status
Not open for further replies.

SOL9MAN

Technical User
Mar 11, 2003
12
0
0
GB
WHAT IS THE BEST WAY OF INSERTING A NEW LINE INTO AN ASCII FILE AT THE START WITHOUT CREATING A TEMP FILE.

REGARDS
 
Try
Code:
ex - filename << EOF
1i

.
wq
EOF

CaKiwi

&quot;I love mankind, it's people I can't stand&quot; - Linus Van Pelt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top