Need to get the list of file with size in AUX

to get the list of file name with size

Example:

rwxrwxrwx 1 cm x 562KB Nov  6 19:22 a
rwxrwxrwx 1 cm x 562MB Nov  6 19:22 a

i am using Hp-AUX.

as we know get the list of file name with size in HP-AUX

o/p Example:

rwxrwxrwx 1 cm x 562KB Nov 6 19:22 a
rwxrwxrwx 1 cm x 562MB Nov 6 19:22 a

Is it homework?
From where you get the sample output?

filter out the corresponding columns from the output of "ls -l". Transform the separators to single blanks, then use "cut -d..." to get certain columns (replace "<spc>" with literal space characters):

ls -l | sed 's/<spc><spc>*/<spc>/g' | cut -d '<spc>' -f5,9

I hope this helps.

bakunin

ls -l not working as i am working in HP-UX

The last time i checked the "ls" command was not missing - not even on HP-Ux. Care to explain?

bakunin