Hallo, bastele gerade an einem kleinen BASH-Script, das mir sagt, wann ein paket installiert wurde... ls -lG --sort=time --time=ctime --full-time /var/lib/dpkg/info/ \ | grep postinstall Das liefert mir ne nette liste... :-) ______ ( stdin ) _____________________________________________________ / | -rwxr-xr-x 1 root 360 Sat May 15 17:35:21 2004 mutt.postinst | -rwxr-xr-x 1 root 135 Sat May 15 17:35:18 2004 libidn11.postinst | -rwxr-xr-x 1 root 395 Sat May 15 17:35:18 2004 libncursesw5.postinst <snip> | -rwxr-xr-x 1 root 5675 Sat May 03 20:31:07 2003 dpkg.postinst | -rwxr-xr-x 1 root 321 Sat May 03 20:31:04 2003 diff.postinst | -rwxr-xr-x 1 root 306 Sat May 03 20:31:03 2003 bash.postinst | -rwxr-xr-x 1 root 3976 Sat May 03 20:31:02 2003 base-files.postinst | -rwxr-xr-x 1 root 2252 Sat May 03 20:31:02 2003 base-passwd.postinst \______________________________________________________________________ Na gut, das sieht gut aus... Nun will ich alles vom beginn bis zum "LEERZEICHEN" vor dem Monatstag entfernen... | sed s/-rwxr-xr-x\ \ \ \ 1\ root\ \ \ \ \ \ \ / / entfernt leider nur bis vor der Dateigröße... | sed s/^[\ a-z0-9-]// entfernt nur ein Zeichen... Ich will aber 34 Zeichen loswerden... Habe jetzt "man bash,sed,regex" durchgelesen, aber nicht uber den "multiplier" gefunden... Kann mir jemand weiterhelfen ? Danke und schönes Wochenende Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.asc
Description: Digital signature