<?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: ls and pipe in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980025#M753744</link>
    <description>&amp;gt;Why the stdout format of 'ls' is changed through a piped command?&lt;BR /&gt;&lt;BR /&gt;Probably they make the -1 option the default so that when you feed the piped out to a filter, you get one at a time.</description>
    <pubDate>Thu, 12 Apr 2007 08:02:54 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-04-12T08:02:54Z</dc:date>
    <item>
      <title>ls and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980024#M753743</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a stupid question and it troubles me.&lt;BR /&gt;&lt;BR /&gt;Why the stdout format of 'ls' is changed through a piped command?&lt;BR /&gt;&lt;BR /&gt;if i do an 'ls' for example, i view all files in a column view.&lt;BR /&gt;'ls |more' view a file by line.&lt;BR /&gt;&lt;BR /&gt;so questions are:&lt;BR /&gt;- why ?&lt;BR /&gt;- is there a way for bypass it ? (without rewrite the output)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Cedrick Gaillard</description>
      <pubDate>Thu, 12 Apr 2007 07:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980024#M753743</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2007-04-12T07:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: ls and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980025#M753744</link>
      <description>&amp;gt;Why the stdout format of 'ls' is changed through a piped command?&lt;BR /&gt;&lt;BR /&gt;Probably they make the -1 option the default so that when you feed the piped out to a filter, you get one at a time.</description>
      <pubDate>Thu, 12 Apr 2007 08:02:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980025#M753744</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-04-12T08:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: ls and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980026#M753745</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;i've just re-read the manpage and i've found the '-C' flag.&lt;BR /&gt;&lt;BR /&gt;this flag allow the multicolum view through a pipe ;)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Cedrick Gaillard</description>
      <pubDate>Thu, 12 Apr 2007 08:09:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980026#M753745</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2007-04-12T08:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: ls and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980027#M753746</link>
      <description>RTFM (Read The Fine Manpage)&lt;BR /&gt;&lt;BR /&gt;For for multicolumn to a pipe use: ls -C &lt;BR /&gt;Also check out: ls -m&lt;BR /&gt;&lt;BR /&gt;Please note how the actual multicolumn format depends on the file name length and terminal width. Try stty cols xxx and repeas an ls. &lt;BR /&gt;- how wide is a pipe?&lt;BR /&gt;- how would a program behind a pipe have to deal with unpredicatable format?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 08:13:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980027#M753746</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-12T08:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: ls and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980028#M753747</link>
      <description>Hi Cedrick:&lt;BR /&gt;&lt;BR /&gt;You can force the preservation of the column view by doing:&lt;BR /&gt;&lt;BR /&gt;# ls -x | more&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 12 Apr 2007 08:14:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980028#M753747</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-04-12T08:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: ls and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980029#M753748</link>
      <description>Just to add this:&lt;BR /&gt;the flag is used with "ls", because "ls" is filling the pipe and "ls" is responsible for the output format, e.g.&lt;BR /&gt;# ls -C | more&lt;BR /&gt;or&lt;BR /&gt;# ls -x | more&lt;BR /&gt;this is up to what you want to get.</description>
      <pubDate>Thu, 12 Apr 2007 08:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980029#M753748</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2007-04-12T08:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: ls and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980030#M753749</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;to summarize the answers above:&lt;BR /&gt;it's not the pipe, which modifies the output (look at ls &amp;gt;tmpfile!) but the tty:&lt;BR /&gt;Without tty you get unmodified output.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Thu, 12 Apr 2007 08:26:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-and-pipe/m-p/3980030#M753749</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-04-12T08:26:46Z</dc:date>
    </item>
  </channel>
</rss>

