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

more command changing text case!!

Status
Not open for further replies.
Oct 22, 2001
215
US
I have a shell script that loops through a file and I have got 'more' command to generate another file. For some reason, the more command change the text to lower case!

How can I prevent this? Any idea? I am using Korn shell in AIX. Thanks a lot
 
I have got 'more' command to generate another file
Why use a pager interactive program to generate a file ?
Can you please post your script to help us to help you ?

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Hi there,
Here is my script:

for MYTEXT in $CODE Q1
do
more $MYTEXT 1>> $TEMP_FILE
more L1 1>> $TEMP_FILE
done
THANX
 
Have you tried something like this ?
for MYTEXT in $CODE Q1
do
cat $MYTEXT
cat L1
done >>$TEMP_FILE

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Thanks but my question is, why the 'more' command would change the case inside a variable and how to prevent it? Thanks again!
 
The intent of more is to view a file one screenful at a time, not to copy a file.
Anyway, man more.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top