- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Shell Scripting
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2007 04:40 PM
тАО02-17-2007 04:40 PM
Shell Scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2007 01:18 AM
тАО02-18-2007 01:18 AM
Re: Shell Scripting
http://www.freeos.com/guides/lsst/
I generally don't write complex shell scripts for points. Shell scripting to some degree is an important part of systems administration.
Time to learn.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2007 12:20 PM
тАО02-18-2007 12:20 PM
Re: Shell Scripting
But by means of this link i didnt get a much idea to procced.
Can some one help me in that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2007 07:33 PM
тАО02-18-2007 07:33 PM
Re: Shell Scripting
Can you be more clear as what is in the string, and what you mean by a paragraph as this is normally decided by a carriage-return at the end of your text. Eg. I typed this message as one continoue line and the web-form in the form decides how to wrap it around?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2007 01:37 AM
тАО02-20-2007 01:37 AM
Re: Shell Scripting
If you will accept Perl instead of a shell script, consider this:
Consider this:
/*file_begins*/
Perl has a read-made soultion for you if you are willing to use it instead of a pure shell script. The Perl module you need is called Text::Wrap and it's included in you standard Perl distribution. In fact, you can use this very file to call it and show it reformatting. Let's reformat this into text that spans no more than 30-columns
and has it paragraphs indented four (4) spaces.
/*file_ends*/
Now, use this passing the name of the file with the above contents:
# perl -MText::Wrap -e '@lines=<>;$Text::Wrap::columns=30;print wrap(" ","",@lines)' file
Perl has a read-made
soultion for you if you are
willing to use it
instead of a pure shell
script. The Perl module you
need is called
Text::Wrap and it's included
in you standard Perl
distribution. In fact,
you can use this very file to
call it and show it
reformatting. Let's
reformat this into text that
spans no more than 30-columns
and has it paragraphs
indented four (4) spaces.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2007 02:14 PM
тАО02-20-2007 02:14 PM
Re: Shell Scripting
It's a print formatter. Tell it how wide you want to go, how long your pages are, and it does the rest for you.