[AusNOG] Synology bulk replace characters
Luke Thompson
luke.thompson at inksystems.com.au
Wed Feb 24 16:50:51 EST 2016
Thanks Dave,
No harm in sharing the script; let's take a look.
Regards,
Luke Thompson
Systems Administrator
P: 1800 838 505
M: 0420 320 930
W: https://www.inksystems.com.au
Ink Systems :: Managed IT Solutions
On 24/02/2016 3:40 PM, David Phelan wrote:
> HI Luke,
> We Had a similar one recently.
> Just ran up a linux Live CD and ran a script with SED to bring everything back to a standard.
>
> It took us a couple of passes as we would always find some exception to the script and we had to make changes..(IE 2 file names that are different files but one had an Upper case char...)
> Happy to share the script if you want it.
>
> Dave
>
>
> -----Original Message-----
> From: AusNOG [mailto:ausnog-bounces at lists.ausnog.net] On Behalf Of Luke Thompson
> Sent: Wednesday, 24 February 2016 2:17 PM
> To: AusNOG at lists.ausnog.net
> Subject: [AusNOG] Synology bulk replace characters
>
> Hi all,
>
> We tend to replace Apple servers with a Synology NAS and proceed to overhaul their networking equipment, etc, to ensure we have a reliable and fit-for-purpose environment to manage.
>
> This time around we've a client who seems to have BOMs (Byte Order
> Marks) in their file names post-migration, courtesy of either Apple or an environment change. Renames to remove the suspect characters can occur in DSM however via SSH it fails to rename files in any of our usual bash scripts as once it has found one of the many illegal files, it cannot rename as the file of course does not exist (given it contains illegal characters).
>
> Our most recent two Mac Server to Synology conversions have both been architects so colons in folders are expected, these can be replaced with ease in a simple find command. However, this BOM style issue seems to be presenting a far more vast hurdle for us.
>
> There are a large number of files so manual renaming is highly undesirable, especially from the client's standpoint for our time.
>
> Has anyone had a similar experience and, if so, what was the workaround?
>
> With thanks and regards,
>
> --
> Luke Thompson
> Systems Administrator
>
> P: 1800 838 505
> M: 0420 320 930
> W: https://www.inksystems.com.au
>
> Ink Systems :: Managed IT Solutions
>
> _______________________________________________
> AusNOG mailing list
> AusNOG at lists.ausnog.net
> http://lists.ausnog.net/mailman/listinfo/ausnog
More information about the AusNOG
mailing list