AIX ls에서의 date format...

withtel의 이미지

리눅스에서 특정시간대에 업데이트 된 파일을 처리하기 위해서
ls 명령어의 옵션 중 --full-time과 --time=ctime을 이용해서 Sort 된 결과를 사용했는데
AIX에서 실행을 시키려고 보니까 이곳에는 이와같은 옵션이 존재하지 않는군요... ㅠㅠ

UNIX에서 처럼 시분까지는 대상 파일검색이 불가능하고
월도 영문에다가, 일정기간이 지나면 출력포맷도 바뀌는 등
일반적인 AIX의 ls 출력결과로는 리눅스에서 작업한 소스코드를 사용할 수 없는 상황입니다.

리눅스에서 처럼 파일 목록을 출력할 수 있는 방법이 없을까요??
리눅스 처럼 microsecond는 아닐지라도
프로그램에서 처리할 수 있게 yyyy-mm-dd hh:mi:ss 정도는 출력되었으면 좋겠습니다.

고수님들 의견 부탁드립니다.

리눅스 출력결과:
AWS01:/app/wdrac/src> ls -ltr --full-time --time=ctime
합계 224
-rw-r--r-- 1 wdrac was 2016 2013-01-15 08:56:59.015625000 +0900 trimStr.c
-rw-r--r-- 1 wdrac was 2642 2013-01-15 08:56:59.171875000 +0900 trimStr2.c
-rw-r--r-- 1 wdrac was 1512 2013-01-15 08:56:59.296875000 +0900 trimStr3.c
-rw-r--r-- 1 wdrac was 2045 2013-02-19 10:13:28.812500000 +0900 trimspace.c
-rwxr-xr-x 1 wdrac was 52447 2013-02-19 10:14:32.859375000 +0900 trimStr3.exe
-rwxr-xr-x 1 wdrac was 51935 2013-02-19 10:14:32.859375000 +0900 trimStr2.exe
-rwxr-xr-x 1 wdrac was 52458 2013-02-19 10:14:32.859375000 +0900 trimStr.exe
-rwxr-xr-x 1 wdrac was 52429 2013-02-19 10:14:32.859375000 +0900 trimspace.exe
AWS01:/app/wdrac/src>

AIX에서 출력결과:
AWS01:/app/dev/wdrac/src> ls -al
total 534
drwxr-xr-x 2 wdrac was 1024 Feb 19 18:25 .
drwxr-xr-x 3 wdrac was 96 Feb 18 13:38 ..
-rw-r--r-- 1 wdrac was 381 Jan 04 17:28 WSP.sh
-rw-r--r-- 1 wdrac was 5906 Oct 20 2011 ins_precomp.mk
-rw-r--r-- 1 wdrac was 2048 Feb 19 18:14 trimspace.c
-rwxr-xr-x 1 wdrac was 137794 Feb 19 17:41 wdrcsp_0d
-rw-r--r-- 1 wdrac was 0 Feb 19 17:41 wdrcsp_0d.lis
-rw-r--r-- 1 wdrac was 437 Feb 19 17:32 wsp.mk
AWS01:/app/dev/wdrac/src>

익명 사용자의 이미지

ls --time-style=full-iso -al

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.