Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'shell width command' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
shell width command
Authored by: gshenaut on Jan 22, '05 09:15:42AM
I think the -S flag is probably a better way to handle apropos, but you could alternatively use this (possibly somewhat fragile) cut command:
cut -c1-`stty all | head -1 | cut -d' ' -f6`

Greg Shenaut

[ Reply to This | # ]

shell width command
Authored by: perturb on Jan 25, '05 09:20:09AM
Less fragile stty:
stty size |cut -d' ' -f2


[ Reply to This | # ]