Помогите пожалйуста гуру баша
нужен скрипт, который бы файлы, создаваемых дженту, типа:
-rw-r--r-- 1 root root 4364 May 19 00:02 ._cfg0000_attack-responses.rules
-rw-r--r-- 1 root root 12580 May 19 00:02 ._cfg0000_backdoor.rules
-rw-r--r-- 1 root root 4488 May 19 00:02 ._cfg0000_chat.rules
-rw-r--r-- 1 root root 54560 May 19 00:02 ._cfg0000_deleted.rules
-rw-r--r-- 1 root root 15599 May 19 00:02 ._cfg0000_exploit.rules
-rw-r--r-- 1 root root 17298 May 19 00:02 ._cfg0000_ftp.rules
-rw-r--r-- 1 root root 12028 May 19 00:02 ._cfg0000_misc.rules
-rw-r--r-- 1 root root 17729 May 19 00:02 ._cfg0000_netbios.rules
-rw-r--r-- 1 root root 3280 May 19 00:02 ._cfg0000_nntp.rules
-rw-r--r-- 1 root root 6157 May 19 00:02 ._cfg0000_oracle.rules
-rw-r--r-- 1 root root 5416 May 19 00:02 ._cfg0000_pop3.rules
-rw-r--r-- 1 root root 51360 May 19 00:02 ._cfg0000_rpc.rules
-rw-r--r-- 1 root root 148937 May 19 00:02 ._cfg0000_sid-msg.map
-rw-r--r-- 1 root root 13597 May 19 00:02 ._cfg0000_smtp.rules
-rw-r--r-- 1 root root 4073 May 19 00:02 ._cfg0000_snmp.rules
-rw-r--r-- 1 root root 3736 May 19 00:02 ._cfg0000_telnet.rules
-rw-r--r-- 1 root root 822 May 19 00:02 ._cfg0000_virus.rules
-rw-r--r-- 1 root root 10366 May 19 00:02 ._cfg0000_web-attacks.rules
-rw-r--r-- 1 root root 92604 May 19 00:02 ._cfg0000_web-cgi.rules
-rw-r--r-- 1 root root 2595 May 19 00:02 ._cfg0000_web-client.rules
-rw-r--r-- 1 root root 34672 May 19 00:02 ._cfg0000_web-iis.rules
-rw-r--r-- 1 root root 78770 May 19 00:02 ._cfg0000_web-misc.rules
-rw-r--r-- 1 root root 32630 May 19 00:02 ._cfg0000_web-php.rules
переименовывал бы в
-rw-r--r-- 1 root root 4132 Apr 13 15:53 attack-responses.rules
-rw-r--r-- 1 root root 12273 Apr 13 15:53 backdoor.rules
-rw-r--r-- 1 root root 2971 May 19 00:02 bad-traffic.rules
-rwxr-xr-x 1 root root 25 Jun 1 08:39 cfgupdate
-rw-r--r-- 1 root root 4460 Apr 13 15:53 chat.rules
-rw-r--r-- 1 root root 3521 May 19 00:02 classification.config
-rw-r--r-- 1 root root 6702 May 19 00:02 ddos.rules
-rw-r--r-- 1 root root 47409 Apr 13 15:53 deleted.rules
-rw-r--r-- 1 root root 4930 May 19 00:02 dns.rules
..
..
я так понимаю придёться sed&awk использовывать чтобы вытащить имена файлов из .cfg000{name}..