Re: map problem




Uri Guttman wrote:
"DS" == DJ Stunks <DJStunks@xxxxxxxxx> writes:

DS> PERL Learner wrote:
>> How can we emulate the UNIX ls -sa1 command with map and get the
>> filesize in bytes?

DS> by the way, you do know that ls -s returns file size in _blocks_ right?

he didn't know because that is incorrect. from perldoc -f -X:

-s File has nonzero size (returns size in bytes).

Now, now. Don't be giving away hints for his assignment...

However, I don't believe I've ever said anything wrong. To wit: OP
asked to emulate the UNIX shell command _ls -s_ which he seems to think
returns file size in bytes. It does not. To emulate ls -s one would
be expected to return the file size in blocks -- unless, of course, his
prof made (gasp!) an error.

Maintaining my perfect record (lifetime),
-jp

.



Relevant Pages

  • How would you emulate cp -al ?
    ... I need to emulate the copy command with preserves file & directory ... attributes and hard-links files instead of copying. ...
    (comp.os.linux.misc)
  • Re: Eliminating non-optical disc devices when enumerating with GUID_DEVINTERFACE_CDROM
    ... And what is such a command? ... the perfect virtual CD drive will emulate them all. ... Maxim S. Shatskih ...
    (microsoft.public.development.device.drivers)
  • Re: Access 2003 Run-Time
    ... to emulate the runtime experience then run ... database name on the command line to. ... > 2003 Developer Extensions CD. ...
    (microsoft.public.access.setupconfig)
  • Twisted Conch for emulating a terminal?
    ... I'm trying to figure out how to emulate a terminal with twisted conch ... (I want to be able to send the client information with the 'write' ... not just execute a single command and exit. ...
    (comp.lang.python)
  • Re: QCTerm and Cobol in Unix
    ... > from the QCTerm drop-down menus. ... > has in Unix Emulators or if I am posting in the right area. ... to emulate a terminal device that the UNIX you are connecting to ... Try looking at the terminfo manpage, on the UNIX box, ...
    (comp.unix.questions)