[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
QSH LS Info
From: |
Bocchino, Frank |
Subject: |
QSH LS Info |
Date: |
Mon, 4 May 2009 15:55:12 -0400 |
Hi, I hope this makes it to you as I'm trying to use some QSH commands
on my AS400. First, thanks for sharing the info. I'm trying to create
a report that'll show a directory sorted by file size. I thought -S
would provide that but it's not working.
The syntax I'm using is;
STRQSH CMD('ls -alS > /fbtest/test.txt')
But the result is as shown below;
Browse : /fbtest/test.txt
Record : 1 of 31 by 18 Column : 1
105 by 131
Control :
....+....1....+....2....+....3....+....4....+....5....+....6....+....7..
..+....8....+....9....+....0....+....1....+....2....+....3.
************Beginning of data**************
total: 3.616 megabytes
37 -rw-rw-rw- 1 FRBOCCHINO 0 0 Dec 6 2006 +
819 drwxr-sr-x 9 FRBOCCHINO 0 28672 Apr 29 09:28 .
37 drwxrwsrwx 11 QSYS 0 8192 Jan 6 10:26 ..
819 -rw------- 1 FRBOCCHINO 0 728 Oct 30 2008
.sh_history
819 drwxr-sr-x 2 FRBOCCHINO 0 8192 Aug 23 2008
.ssh
1252 -rwxrwx--- 1 FRBOCCHINO 0 9131 Mar 20 08:26
36492_3_16_2009_P2013R.PDF
37 drwxr-sr-x 2 FRBOCCHINO 0 8192 Apr 29 09:28
Archive
1252 -rwx------ 1 FRBOCCHINO 0 14993 Feb 16 18:13
C01BLPYF_679404_____2.TXT
1252 -rwxrwx--- 1 FRBOCCHINO 0 123963 Jun 6 2008
F000000705_M0000266.PDF
37 -rw------- 1 FRBOCCHINO 0 24986 Oct 17 2008
F000000785_CLUE_HISTORY_SAFETY02
1252 -rwx------ 1 FRBOCCHINO 0 14993 Feb 16 18:13
F000001017_C01BLPYF_679404_____2.TXT
1252 -rwx---r-- 1 FRBOCCHINO 0 19413 Apr 22 09:53
FOPRT01.HTM
Is there any way to run a QSH cmd that'll sort by file size?
Thanks, Frank
- QSH LS Info,
Bocchino, Frank <=