The UNIX and Linux Forums  


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
Create a file from within a script lamano Shell Programming and Scripting 2 03-04-2009 04:31 PM
Shell script to search for text in a file and copy file imeadows UNIX for Dummies Questions & Answers 9 11-12-2008 09:12 PM
Create file in script paparazi Shell Programming and Scripting 3 02-26-2008 03:16 AM
Script to generate text file from excel file isingh786 UNIX for Dummies Questions & Answers 1 01-24-2008 10:32 AM
script to create tar file ajrandrup UNIX for Dummies Questions & Answers 2 12-03-2003 01:06 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-07-2006
n8575 n8575 is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 15
create a text file in a script

Hi,
i want to create a text file (init${x}.ora) and write information to it via a korn shell script.
Is it right to do it as shown below (the file doesnt exist yet)?

x=$1
file="$ORC/dbs/init${x}.ora"

echo "info here..." >> $file


will this file get created?
  #2 (permalink)  
Old 02-07-2006
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,787
Assuming $ORC is a directory and ./dbs exists under, and you have write permissions to ./dbs - yes.

If x=1, ORC=/path/to/oracle then the file will be: /path/to/oracle/dbs/init1.ora
  #3 (permalink)  
Old 02-07-2006
n8575 n8575 is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 15
Thank you!
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 12:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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