The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
creating a file using Perl chriss_58 Shell Programming and Scripting 1 06-03-2008 07:41 AM
Creating a file ravisg Shell Programming and Scripting 2 05-10-2008 06:15 AM
help with creating new log file john89011 Shell Programming and Scripting 0 02-29-2008 12:45 PM
creating a csv file in awk Segwar Shell Programming and Scripting 6 02-29-2008 10:43 AM
Creating a csv file based on Existing file skywayterrace Shell Programming and Scripting 3 12-02-2007 09:19 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-31-2008
outthere_3 outthere_3 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 9
Creating a txt file

Hi All,

I would like to know if you can set up in part of a script for the script to create a txt file and put some predetermined text into it.

#Example

make file example.txt

#Then it would the lines below into the text file as text.

Line 1
Line 2
Line 3

Does anyone have any answers.

Jeremy
  #2 (permalink)  
Old 01-31-2008
vangalli vangalli is offline
Registered User
  
 

Join Date: Jul 2006
Location: Hindusthan ( INDIA )
Posts: 18
here is the answer!!

touch example.txt
echo Line1 >> example.txt
echo Line2 >> example.txt
echo Line3>> example.txt
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0