replace spaces in filenames

32 views
Skip to first unread message

dulh...@mailbox.org

unread,
Mar 17, 2022, 8:50:20 AM3/17/22
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
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
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.
Reply all
Reply to author
Forward
0 new messages