Setting System Variable LINES


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Setting System Variable LINES
# 1  
Old 12-03-2009
Setting System Variable LINES

I am trying to set my system variable LINES and not able to do that permanently. I used the following commands for this:
Quote:
[I have no name!@Station130 Shell Scripting]$ echo $LINES
39
[I have no name!@Station130 Shell Scripting]$ LINES=125
[I have no name!@Station130 Shell Scripting]$ echo $LINES
125
[I have no name!@Station130 Shell Scripting]$ ls a
a
[I have no name!@Station130 Shell Scripting]$ echo $LINES
39
[I have no name!@Station130 Shell Scripting]$
Can I able to chage the value of that variable permanently atleast I exit from the shell?
# 2  
Old 12-03-2009
Maybe you can use:

Code:
stty rows 125

(in your .profile to make it permanent)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[Perl] Split lines into array - variable line items - variable no of lines.

Hi, I have the following lines that I would like to see in an array for easy comparisons and printing: Example 1: field1,field2,field3,field4,field5 value1,value2,value3,value4,value5Example 2: field1,field3,field4,field2,field5,field6,field7... (7 Replies)
Discussion started by: ejdv
7 Replies

2. UNIX for Dummies Questions & Answers

setting the system date

Okay so I'm not really a newbie, but this bugs the crap out of me (rant on). Every so often I need to change the system time. I run "man date" and always find the "date -s" command, but for who knows how long, the manual page has *never* listed the format of the input string required to set the... (1 Reply)
Discussion started by: qneill
1 Replies

3. HP-UX

How Can I find these system setting

My OS is B.11.31 Q1: How Can I find default program-->default browser -->default mail tools positition in OS file Q2: How Can I find default log server location in OS file Q3: How Can I find boot program and serviecs (3 Replies)
Discussion started by: alert0919
3 Replies

4. Shell Programming and Scripting

Help with setting a variable!

I am working within a while loop and i am trying to set a variable that will read out each count of the files. the problem is the count variable i have set up gives me a total and not the individual count of each file. in the data area there is 4 abc.dat and 1 def.dat. how can i do this??? ... (2 Replies)
Discussion started by: Pablo_beezo
2 Replies

5. UNIX for Dummies Questions & Answers

setting a variable

In my script, I have the following command.... du -sk `ls -ltd sales12|awk '{print $11}'`|awk '{print $1}' it returns the value 383283 I want to modify my script to capture that value into a variable. So, I try doing the following... var1=`du -sk `ls -ltd sales12|awk '{print... (5 Replies)
Discussion started by: tumblez
5 Replies

6. Shell Programming and Scripting

Variable setting help please

L=0 cat test.sh | while read line do L='expr $1 + 1' echo $L done echo $l >>> the echo $L at the end produces 0 but i actually want it to produce the number of lines - any idea why this is happening? (16 Replies)
Discussion started by: penfold
16 Replies

7. UNIX for Dummies Questions & Answers

Setting a variable

I want to set a variable to be any number of dashes. Rather than doing the following: MYVAR="------------------" I'd like to be able to set the variable to, say, 80 dashes but don't want to have to count 80 dashes. Is there a way to do this? (2 Replies)
Discussion started by: photh
2 Replies

8. Programming

setting CC variable

I am trying to install GCC-3.1.1 on an SGI Indigo2. I already have MIPSpro 7.2.1 installed. However, when I try to configure GCC-3.1.1, I get the message "cc ERROR: cc -o conftest -g failed, You must set the environment variable CC to a working compiler." What is the name of the MIPSpro c++... (1 Reply)
Discussion started by: mdbanas
1 Replies

9. UNIX for Dummies Questions & Answers

setting CC variable

I am trying to install GCC-3.1.1 on an SGI Indigo2. I already have MIPSpro 7.2.1 installed. However, when I try to configure GCC-3.1.1, I get the message "cc ERROR: cc -o conftest -g failed, You must set the environment variable CC to a working compiler." What is the name of the MIPSpro c++... (1 Reply)
Discussion started by: mdbanas
1 Replies

10. UNIX for Dummies Questions & Answers

Setting up NFS system

I want to set up NFS system as server and client on a linux redhat7.1. Can anybody give me some guidence on how to setup NFS system. All I want to do is to let the client use just one Directory from the clinet machine. Please help me out. Thanks. ... (1 Reply)
Discussion started by: syedifti
1 Replies
Login or Register to Ask a Question