You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
hi everybody,
I have a situation where I need to replace spaces in filenames on
a large scale.
Is there any way to do this with Ansible?
Brian Coca
unread,
Mar 17, 2022, 4:41:27 PM3/17/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
yes, but for that specific task i would use the `rename` command with
expressions
--
----------
Brian Coca
Todd Lewis
unread,
Mar 17, 2022, 8:35:21 PM3/17/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
There are accepted patches in the pipeline which add an "--all" parameter to the `rename` command, so you can replace all the spaces in one go instead of just the first one. Alas, that has not made it to a released version yet. Soon, though, I hope.