<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Shell Scripting in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946678#M65593</link>
    <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;If you will accept Perl instead of a shell script, consider this:&lt;BR /&gt;&lt;BR /&gt;Consider this:&lt;BR /&gt;&lt;BR /&gt;/*file_begins*/&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;and has it paragraphs indented four (4) spaces.&lt;BR /&gt;&lt;BR /&gt;/*file_ends*/&lt;BR /&gt;&lt;BR /&gt;Now, use this passing the name of the file with the above contents:&lt;BR /&gt;&lt;BR /&gt;# perl -MText::Wrap -e '@lines=&amp;lt;&amp;gt;;$Text::Wrap::columns=30;print wrap("    ","",@lines)' file&lt;BR /&gt;&lt;BR /&gt;    Perl has a read-made&lt;BR /&gt;soultion for you if you are&lt;BR /&gt;willing to use it&lt;BR /&gt;instead of a pure shell&lt;BR /&gt;script.  The Perl module you&lt;BR /&gt;need is called&lt;BR /&gt;Text::Wrap and it's included&lt;BR /&gt;in you standard Perl&lt;BR /&gt;distribution.  In fact,&lt;BR /&gt;you can use this very file to&lt;BR /&gt;call it and show it&lt;BR /&gt;reformatting.  Let's&lt;BR /&gt;reformat this into text that&lt;BR /&gt;spans no more than 30-columns&lt;BR /&gt;and has it paragraphs&lt;BR /&gt;indented four (4) spaces.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 20 Feb 2007 09:37:39 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-02-20T09:37:39Z</dc:date>
    <item>
      <title>Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946674#M65589</link>
      <description>Can u all help me in devloping a shell script which converts the string into paragrah detecting tab spaces and new line and commas also.i m not getting how to procced.</description>
      <pubDate>Sun, 18 Feb 2007 00:40:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946674#M65589</guid>
      <dc:creator>Ankush_me</dc:creator>
      <dc:date>2007-02-18T00:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946675#M65590</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.freeos.com/guides/lsst/" target="_blank"&gt;http://www.freeos.com/guides/lsst/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I generally don't write complex shell scripts for points. Shell scripting to some degree is an important part of systems administration.&lt;BR /&gt;&lt;BR /&gt;Time to learn.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 18 Feb 2007 09:18:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946675#M65590</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-02-18T09:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946676#M65591</link>
      <description>Hi Every one&lt;BR /&gt;&lt;BR /&gt;But by means of this link i didnt get a much idea to procced.&lt;BR /&gt;&lt;BR /&gt;Can some one help me in that?</description>
      <pubDate>Sun, 18 Feb 2007 20:20:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946676#M65591</guid>
      <dc:creator>Ankush_me</dc:creator>
      <dc:date>2007-02-18T20:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946677#M65592</link>
      <description>Ankush,&lt;BR /&gt;&lt;BR /&gt;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?</description>
      <pubDate>Mon, 19 Feb 2007 03:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946677#M65592</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2007-02-19T03:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946678#M65593</link>
      <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;If you will accept Perl instead of a shell script, consider this:&lt;BR /&gt;&lt;BR /&gt;Consider this:&lt;BR /&gt;&lt;BR /&gt;/*file_begins*/&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;and has it paragraphs indented four (4) spaces.&lt;BR /&gt;&lt;BR /&gt;/*file_ends*/&lt;BR /&gt;&lt;BR /&gt;Now, use this passing the name of the file with the above contents:&lt;BR /&gt;&lt;BR /&gt;# perl -MText::Wrap -e '@lines=&amp;lt;&amp;gt;;$Text::Wrap::columns=30;print wrap("    ","",@lines)' file&lt;BR /&gt;&lt;BR /&gt;    Perl has a read-made&lt;BR /&gt;soultion for you if you are&lt;BR /&gt;willing to use it&lt;BR /&gt;instead of a pure shell&lt;BR /&gt;script.  The Perl module you&lt;BR /&gt;need is called&lt;BR /&gt;Text::Wrap and it's included&lt;BR /&gt;in you standard Perl&lt;BR /&gt;distribution.  In fact,&lt;BR /&gt;you can use this very file to&lt;BR /&gt;call it and show it&lt;BR /&gt;reformatting.  Let's&lt;BR /&gt;reformat this into text that&lt;BR /&gt;spans no more than 30-columns&lt;BR /&gt;and has it paragraphs&lt;BR /&gt;indented four (4) spaces.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 20 Feb 2007 09:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946678#M65593</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-02-20T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946679#M65594</link>
      <description>'pr' is your friend.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Tue, 20 Feb 2007 22:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-scripting/m-p/3946679#M65594</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-02-20T22:14:16Z</dc:date>
    </item>
  </channel>
</rss>

