summaryrefslogtreecommitdiffstats
path: root/.local/bin/unixize
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-11 15:45:31 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-11 15:45:31 +0200
commita2bfadefdc8542f4a88d0c8027865ac71a82c319 (patch)
treeea4c323545f889b8264db2053e06723496c08e02 /.local/bin/unixize
parentunixize script done (diff)
downloaddotfiles-bsd-a2bfadefdc8542f4a88d0c8027865ac71a82c319.tar.gz
dotfiles-bsd-a2bfadefdc8542f4a88d0c8027865ac71a82c319.tar.bz2
dotfiles-bsd-a2bfadefdc8542f4a88d0c8027865ac71a82c319.tar.xz
dotfiles-bsd-a2bfadefdc8542f4a88d0c8027865ac71a82c319.tar.zst
dotfiles-bsd-a2bfadefdc8542f4a88d0c8027865ac71a82c319.zip
unixize script update
Diffstat (limited to '')
-rwxr-xr-x.local/bin/unixize3
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/unixize b/.local/bin/unixize
index 74423d0..0814bca 100755
--- a/.local/bin/unixize
+++ b/.local/bin/unixize
@@ -23,7 +23,10 @@ sub get_new_files
my @new_files;
foreach (@og_files) {
+ $_ =~ s/\ -\ /-/g;
+ $_ =~ s/\_-\_/-/g;
$_ =~ s/\ /_/g;
+ $_ =~ s/[\$#@~!&*()\[\];,:?^`\\\/]+/-/g;
$_ = lc($_);
push @new_files, $_;
}