public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* rename using regexpr - is it possible?
@ 2021-10-24  9:29 Fergus Daly
  2021-10-24 10:12 ` Eliot Moss
  0 siblings, 1 reply; 8+ messages in thread
From: Fergus Daly @ 2021-10-24  9:29 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

I might be wrong but:
The Cygwin implementation of rename seems completely different from "the" (my) Linux version.
(Almost unique? Otherwise the matching in Cygwin of all syntax - vocab, switches, outcomes - to Linux, seems almost perfect.)
Can I rename a set of files *.d (say) as filename.d -> XXfilename.d?
In Linux this would be achieved by
$ rename 's/^/XX/g' ./*.d
whereas in Cygwin
$ rename ^ XX *.d
(and all similar attempts) fails.
Thank you.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-26  9:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-24  9:29 rename using regexpr - is it possible? Fergus Daly
2021-10-24 10:12 ` Eliot Moss
2021-10-24 10:15   ` Eliot Moss
2021-10-24 15:55   ` Fergus Daly
2021-10-24 16:11     ` Eliot Moss
2021-10-25 20:29       ` Fergus Daly
2021-10-26  8:29         ` Eliot Moss
2021-10-26  9:38           ` Fergus Daly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).