<?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: list file creadted year using ll cmd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479935#M362391</link>
    <description>ls, not ll as you mentioned, on hpux, is not designed to stamp "year" portion of the date to a file unless it is more than one year old. I am not sure what you are after but, if this is a necessity, you can write a script to read the output of ls -l command and output the listing in a way you desire. But there is no option in ls command that will give you the result you want.</description>
    <pubDate>Fri, 14 Aug 2009 19:10:52 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2009-08-14T19:10:52Z</dc:date>
    <item>
      <title>list file creadted year using ll cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479934#M362390</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;How do I list the files with created year , ll -lrt want give the year.&lt;BR /&gt;&lt;BR /&gt;-rw-r--r--   1 root       sys          10731 Jul 18 23:44 cart.txt&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jul 18 23:44 comp.txt&lt;BR /&gt;-rw-r--r--   1 root       sys            773 Jul 18 23:44 devices.txt&lt;BR /&gt;-rw-r--r--   1 root       sys          24890 Jul 18 23:44 media.txt&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jul 18 23:44 mtmp.txt&lt;BR /&gt;-rw-r--r--   1 root       sys            596 Jul 18 23:44 pools.txt&lt;BR /&gt;-rw-r--r--   1 root       sys            351 Jul 18 23:44 stores.txt&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Ashan&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Aug 2009 18:57:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479934#M362390</guid>
      <dc:creator>ashanabey</dc:creator>
      <dc:date>2009-08-14T18:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: list file creadted year using ll cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479935#M362391</link>
      <description>ls, not ll as you mentioned, on hpux, is not designed to stamp "year" portion of the date to a file unless it is more than one year old. I am not sure what you are after but, if this is a necessity, you can write a script to read the output of ls -l command and output the listing in a way you desire. But there is no option in ls command that will give you the result you want.</description>
      <pubDate>Fri, 14 Aug 2009 19:10:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479935#M362391</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-08-14T19:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: list file creadted year using ll cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479936#M362392</link>
      <description>I think when the file is older more than 6 months, (or maybe 180 days) it uses year.</description>
      <pubDate>Fri, 14 Aug 2009 19:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479936#M362392</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2009-08-14T19:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: list file creadted year using ll cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479937#M362393</link>
      <description>Hi Ashan:&lt;BR /&gt;&lt;BR /&gt;The standard UNIX behavior is described in the 'ls' manpages, "If the time of last modification is greater than six months ago, or any time in the future, the year is substituted for the hour and minute of the modification time."&lt;BR /&gt;&lt;BR /&gt;You can, however, do something like this:&lt;BR /&gt;&lt;BR /&gt;# ls -alrt|awk -v YEAR=$(date +%Y) '{if ($8~/:/) {$8=YEAR};$NF=$NF;print}'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 14 Aug 2009 19:22:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479937#M362393</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-08-14T19:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: list file creadted year using ll cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479938#M362394</link>
      <description>&lt;!--!*#--&gt;The original "ls -l" output date-time format&lt;BR /&gt;may represent one of the worst "design"&lt;BR /&gt;decisions anywhere in UNIX.  On the bright&lt;BR /&gt;side, GNU "ls" offers more date-time format&lt;BR /&gt;options than anyone should want, including&lt;BR /&gt;"--time-style=style=+&lt;FORMAT&gt;", which can&lt;BR /&gt;do nearly anything except send e-mail.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/coreutils/manual/" target="_blank"&gt;http://www.gnu.org/software/coreutils/manual/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/coreutils/manual/html_node/Formatting-file-timestamps.html" target="_blank"&gt;http://www.gnu.org/software/coreutils/manual/html_node/Formatting-file-timestamps.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I quote:&lt;BR /&gt;&lt;BR /&gt;      To avoid certain denial-of-service&lt;BR /&gt;      attacks, timestamps that would be&lt;BR /&gt;      longer than 1000 bytes may be treated&lt;BR /&gt;      as errors.&lt;BR /&gt;&lt;BR /&gt;If that's not scary, what is?&lt;/FORMAT&gt;</description>
      <pubDate>Fri, 14 Aug 2009 22:43:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479938#M362394</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-08-14T22:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: list file creadted year using ll cmd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479939#M362395</link>
      <description>&amp;gt;How do I list the files with created year?&lt;BR /&gt;&lt;BR /&gt;You can modify a copy of ls.cat to have your own format:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1320053" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1320053&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1279941" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1279941&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1207493" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1207493&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1182062" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1182062&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Mel: ls, not ll as you mentioned,&lt;BR /&gt;&lt;BR /&gt;ls(1) and ll(1) are the same executable.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Tingli: or maybe 180 days&lt;BR /&gt;&lt;BR /&gt;Right, 180 days, or an hour in the future.</description>
      <pubDate>Fri, 14 Aug 2009 22:48:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-file-creadted-year-using-ll-cmd/m-p/4479939#M362395</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-14T22:48:46Z</dc:date>
    </item>
  </channel>
</rss>

