<?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: about linux commands in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254942#M33502</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you mean how do you print only the last file in a directory, then:&lt;BR /&gt;&lt;BR /&gt;# ls -l /path | grep "^-" | tail -1&lt;BR /&gt;&lt;BR /&gt;...which limits everything to regular files in '/path' and returns only the last one.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Aug 2008 08:41:20 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-08-20T08:41:20Z</dc:date>
    <item>
      <title>about linux commands</title>
      <link>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254940#M33500</link>
      <description>How to print the last but one file in a directory?</description>
      <pubDate>Wed, 20 Aug 2008 08:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254940#M33500</guid>
      <dc:creator>sbtsantosh</dc:creator>
      <dc:date>2008-08-20T08:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: about linux commands</title>
      <link>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254941#M33501</link>
      <description>Use:&lt;BR /&gt;&lt;BR /&gt;ls | tail -1&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Wed, 20 Aug 2008 08:40:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254941#M33501</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2008-08-20T08:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: about linux commands</title>
      <link>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254942#M33502</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you mean how do you print only the last file in a directory, then:&lt;BR /&gt;&lt;BR /&gt;# ls -l /path | grep "^-" | tail -1&lt;BR /&gt;&lt;BR /&gt;...which limits everything to regular files in '/path' and returns only the last one.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Aug 2008 08:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254942#M33502</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-20T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: about linux commands</title>
      <link>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254943#M33503</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Works well in Unix too. Or the Linux forums.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/familyhome.do?familyId=118" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/familyhome.do?familyId=118&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 20 Aug 2008 09:15:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254943#M33503</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-08-20T09:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: about linux commands</title>
      <link>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254944#M33504</link>
      <description>&amp;gt;How to print the last but one file in a directory?&lt;BR /&gt;&lt;BR /&gt;I assume that you don't want "last file", otherwise you would have said so, and want file N-1:&lt;BR /&gt;ls | tail -2 | head -1&lt;BR /&gt;&lt;BR /&gt;(This prints any type of "file".)</description>
      <pubDate>Thu, 21 Aug 2008 04:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/about-linux-commands/m-p/4254944#M33504</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-21T04:24:23Z</dc:date>
    </item>
  </channel>
</rss>

