[Lazarus] target filename extension
Marco van de Voort
marcov at stack.nl
Thu May 22 11:10:29 CEST 2008
On Wed, May 21, 2008 at 02:13:47PM +0200, Graeme Geldenhuys wrote:
>
> graemeg at graemeg:tmp$ ls -l untit*
> -rw-r--r-- 1 graemeg graemeg 7280 2008-05-21 13:50 untitled1
> -rw-r--r-- 1 graemeg graemeg 2311 2008-05-21 13:51 untitled2
> -rw-r--r-- 1 graemeg graemeg 96256 2008-05-21 13:51 untitled3
>
> Here it lists three files of different types. OpenDocument Text, Rich
> Text and MS Word respectively.
How do you know that on windows? Richt text e.g. is some times also .doc.
On Windows people often confuse file type with extension. (and lots of
security problems were the result).
On unix it is a bit simpler:
ls untitled* |xargs -Iplaceholder file placeholder
> You have no idea knowing that from the
> command line, other than using some hex editor to peak at the first 3-5
> bytes of the file (a process way above the avg user).
See above, it is way better.
More information about the Lazarus
mailing list