On Sam, 25 Aug 2001, Peter Rudek wrote:
* Michael Hoeller
[010825 17:27]: Wo kann ich so was erfahren? In man test steht das nichts und ich waere nicht
'test' ist $ type -a test test is a shell builtin test is /usr/bin/test 1. ein binary dessen manpage 'man test' ist 2. aber auch ein bash-builtin, zu welchem es 'man bash' und 'man bashbuiltins' zu lesen gilt. Einfacher ist aber: help test Und tata *g*: $ help [ [: [ arg... ] This is a synonym for the "test" builtin, but the last argument must be a literal `]', to match the opening `['. $ help help help: help [pattern ...] Display helpful information about builtin commands. If PATTERN is specified, gives detailed help on all commands matching PATTERN, otherwise a list of the builtins is printed.
hmm, Erstellungdatum, keine Ahnung....
Aus /usr/src/linux/include/linux/ext2_fs.h: struct ext2_inode { /* ... */ __u32 i_atime; /* Access time */ __u32 i_ctime; /* Creation time */ __u32 i_mtime; /* Modification time */ __u32 i_dtime; /* Deletion Time */ /* ... */ }; Es ist also "ctime" die gewuensche Zeit...
ARCHIV="/backup/archiv" TMPDIR="/tmp/backup" mv $ARCHIV $TMPDIR\$ARCHIV ^^^ fipptehler? oder mir unbekannt ;)
mv "${ARCHIV}" "${TMPDIR}`basename ${ARCHIV}`" alternativ aber bash-spezifisch und afair nicht portabel sowie IIRC anfaellig fuer Leerzeichen o.ae.: mv "$ARCHIV" "${TMPDIR}${ARCHIV##*\/}" -dnh -- Das höhrt sich an, wie die Beschreibung eines Dildos für gewesene Jungfrauen. [WoKo in dafb]