-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 19-Aug-2002/15:08 +0200, cana rich <[EMAIL PROTECTED]> wrote:
>I have follow this exemple but the format date is invalide at bold
>line(down the page)
>Is someone can tell me which format is the correct one?

Do you mean his line:

  filedate=`ls --full-time $1 | cut -c 48-62`

The --full-time option give a more complete date and time for the file.
Otherwise, you may get something like "Aug 13 09:51" and then your script
would have to figure out what year it should use. The exact format of the
resulting date may depend on your Locale.

The "-c 48-62" cuts out characters 48 through 62 in a line of text. On my
system, those characters contain the date when I use "ls --full-time". You
may have to test "ls --full-time" and edit the script to cut out the
characters that represent the date on your system.


Tony
- -- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Chat: TonyG05      HomePage: <http://www.pobox.com/~agreene/>
Linux: the choice of a GNU Generation. <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]>

iD4DBQE9YRXFpCpg3WyUI50RAt/RAJiD/ZvJEhhCNO85a4nt+j9dTaB9AJ9jYm7U
XTTFd0UuYIwn775niBGOXQ==
=lVgE
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to