-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 14 October 2004 12:33, Florian Tham wrote:
Mit bash-eigenen Mitteln ist das soviel ich weiß auch nicht hinzubekommen (lasse mich gern vom Gegenteil überzeugen ;-)).
Eine Möglichkeit wäre z.B.:
string=`echo $string|awk '{print substr($0,index($0,$6))}'`
Vielleicht hilft das weiter: opi:/home/r2 # ls -l x* | while read c1 c2 c3 c4 c5 rest; do echo "$rest"; done Sep 22 15:10 x Oct 9 20:36 x.iso Sep 22 15:10 x.pl Sep 22 14:56 x.pl~ Sep 26 21:56 x2.pl Sep 26 21:49 x2.pl~ Also: opi:/home/r2 # string="$(ls -l x.pl)" opi:/home/r2 # echo "$string" - -rw-r--r-- 1 r2 users 384 Sep 22 15:10 x.pl opi:/home/r2 # string="$(echo "$string" | (read c1 c2 c3 c4 c5 rest; echo $rest))" opi:/home/r2 # echo "$string" Sep 22 15:10 x.pl Torsten -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBbnYOwicyCTir8T4RAlAQAKCjg/5dUip0utvg4G9zrDvYNJgtDgCgoBUL RksQ9xKksb1flIUwOBZfZmE= =gdbg -----END PGP SIGNATURE-----