Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Prepend/append to the members of a list



Hi,

somewhere I've used

% ls foo bar bla

Then I've left the directory. Later I want to do

% ls !ls*:(s/^/dir/)

But it does not work, because the s/// expression doesn't know ^.

Or another example:

% cp dir/*.[1-9](:t:s+^+/usr/share/man/man?/+:s/$/.gz/) .

How can I make it? Is this possible?

Bye, Jörg.
-- 
Was man mühelos erreichen kann, ist gewöhnlich nicht der Mühe wert,
erreicht zu werden.

Attachment: pgpx51brqf3Xd.pgp
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author