regex
-
Also ich habe eine textdatei die folgendes beiinhaltet:
---s--x--x 2 root root 164644 2008-01-07 20:16:49.000000000 +0100 ./usr/bin/sudo
---s--x--x 2 root root 164644 2008-01-07 20:16:49.000000000 +0100 ./usr/bin/sudoedit
-r-xr-sr-x 1 root tty 10712 2007-10-10 21:54:13.000000000 +0200 ./usr/bin/wall
-rwxr-sr-x 1 root tty 10052 2008-01-16 14:47:08.000000000 +0100 ./usr/bin/write
-rws--x--x 1 root root 1906084 2008-01-21 21:48:36.000000000 +0100 ./usr/bin/Xorg
-rwsr-xr-x 1 root root 151853 2007-11-16 18:43:22.000000000 +0100 ./usr/kerberos/bin/ksu
-rwsr-xr-x 1 root root 186096 2007-11-20 20:40:38.000000000 +0100 ./usr/libexec/openssh/ssh-keysign
-rwxr-sr-x 1 root polkituser 16400 2007-10-12 00:52:29.000000000 +0200 ./usr/libexec/polkit-grant-helper
-rwsr-x--- 1 root polkituser 9924 2007-10-12 00:52:29.000000000 +0200 ./usr/libexec/polkit-grant-helper-pam
-rwx--s--x 1 root utmp 6896 2008-01-04 20:59:57.000000000 +0100 ./usr/libexec/utempter/utempter
-rwsr-xr-x 1 root root 61744 2008-01-23 10:35:59.000000000 +0100 ./usr/lib/nspluginwrapper/plugin-config
-rwx--s--x 1 root utmp 12616 2007-09-18 06:28:14.000000000 +0200 ./usr/lib/vte/gnome-pty-helper
-rwsr-xr-x 1 root root 6456 2007-08-22 23:50:05.000000000 +0200 ./usr/sbin/ccreds_validate
-rwx--s--x 1 root lock 16904 2007-10-15 16:47:58.000000000 +0200 ./usr/sbin/lockdev
-rwsr-x--- 1 root gnokii 7440 2007-11-29 14:58:43.000000000 +0100 ./usr/sbin/mgnokiidev
-rwxr-sr-x 1 root smmsp 826328 2007-11-22 14:53:31.000000000 +0100 ./usr/sbin/sendmail.sendmail
-r-s--x--- 1 root apache 11668 2007-09-18 09:57:57.000000000 +0200 ./usr/sbin/suexec
-rws--x--x 1 root root 35152 2007-10-16 13:43:42.000000000 +0200 ./usr/sbin/userhelper
-rwsr-xr-x 1 root root 6896 2007-09-28 00:07:30.000000000 +0200 ./usr/sbin/userisdnctl
-rwsr-xr-x 1 root root 7056 2007-10-09 23:06:20.000000000 +0200 ./usr/sbin/usernetctl
drwxrws--- 18 root ccache 4096 2008-02-13 18:17:29.000000000 +0100 ./var/cache/ccache
.
.
.
.../usr/sbin/usernetctl
drwxrws--- 18 root ccache 4096 2008-02-13 18:17:29.000000000 +0100Das fette soll nicht ausgegeben werden.
Da ich leider nur die Grundzüge von grep kenne wäre ich für eine Lösung beziehungsweise einen Lösungansatz sehr Dankbar.
Ich entwickle mein Projekt unter Linux Plattform also bitte nur Linux kompatible
Antworten posten.Danke
-
Konnte die Einträge jetzt durch die Pfade zuordnen die Leicht mit grep auszugeben sind...
trotzdem Danke