UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 4th, 2006, 07:06 PM
pchernik pchernik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 2 pchernik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 4 sec
Reputation Power: 0
Setting shell tab stop

Hi All,

Is there a way to set the shell tab stop (tab width?) Solaris (shell is KSH, if it matters) for terminal output from utilities like echo, cat, diff, grep, etc?

I.e. I would like to use tab width 4 instead of 8, and if I do:

echo "123<tab>4"

I'd like to see (using dots instead of space, for clarity):

123.4

instead of

123.....4

Which is the case with default tab width of 8.

Any info / suggestions are appreciated.

Thanks,
-Pavel

Reply With Quote
  #2  
Old August 4th, 2006, 07:37 PM
edman007's Avatar
edman007 edman007 is offline
Trapped on the forums...help
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Aug 2003
Location: /Users/edman007
Posts: 4,617 edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 67263 Folding Title: Intermediate FolderFolding Points: 67263 Folding Title: Intermediate FolderFolding Points: 67263 Folding Title: Intermediate FolderFolding Points: 67263 Folding Title: Intermediate Folder
Time spent in forums: 1 Month 3 Weeks 3 Days 5 h 1 m 50 sec
Reputation Power: 788
Send a message via AIM to edman007
i think its a terminal preference not a shell pref
__________________
Feed ME

Reply With Quote
  #3  
Old August 4th, 2006, 11:42 PM
pchernik pchernik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 2 pchernik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 4 sec
Reputation Power: 0
Quote:
Originally Posted by edman007
i think its a terminal preference not a shell pref


How would I set terminal preferences (pardon the dumb question, never had to do that)?

I'm using SecureCRT.

Reply With Quote
  #4  
Old August 5th, 2006, 05:21 AM
SimonJM SimonJM is offline
Contributing User
Dev Shed Novice (500 - 999 posts) Click here for more information
 
Join Date: Mar 2006
Posts: 728 SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level)SimonJM User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 4 h 30 m 11 sec
Reputation Power: 315
Never had to worry about that - termcap files or the stty command perhaps?
Comments on this post
edman007 agrees: yup, thats it,`man termcap`, edit it in /etc/termcap

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Setting shell tab stop


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway