![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can you ref/link/import a function from external ksh script? | isawme | Shell Programming and Scripting | 2 | 02-03-2009 10:44 AM |
| Data Import perl script | scott_apc | Shell Programming and Scripting | 3 | 02-03-2009 05:53 AM |
| import var and function from ksh script to another ksh script | wolfhurt | Shell Programming and Scripting | 2 | 04-02-2008 10:08 AM |
| Pearl script to automate SSL certificate import | m_kk | UNIX for Advanced & Expert Users | 4 | 02-12-2008 04:24 PM |
| Need help with a script to rearrange columns | n3al10 | Shell Programming and Scripting | 11 | 12-08-2007 05:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How import $COLUMNS from set into script
im trying to do this inside a bash script;
for ((a=$COLUMNS;a>0;a--)) do printf "=" done printf "\n" With it i want to display an "equals" line as long as de curent shell window. but i can't get the $COLUMNS variable from the set enviroment. Some help please. Last edited by Tártaro; 06-02-2009 at 06:10 PM.. |
|
||||
|
Thanks but this dosen't work.The problem is i can't get $COLUMNS from the enviroment.
-----Post Update----- i found myself the solution; for ((a=$(tput cols);a>0;a--)) do printf "=" done printf "\n" bye Last edited by Tártaro; 06-02-2009 at 06:09 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|