From 08478d868b0ce55f9ad3dc3df975c3b7ca1e231d Mon Sep 17 00:00:00 2001 From: Patrick Neumann Date: Wed, 13 Feb 2019 11:21:13 +0100 Subject: [PATCH] added some output --- grep/generate_files_with_problematic_names | 45 +++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/grep/generate_files_with_problematic_names b/grep/generate_files_with_problematic_names index adb2809..5e27d55 100644 --- a/grep/generate_files_with_problematic_names +++ b/grep/generate_files_with_problematic_names @@ -12,28 +12,71 @@ # Todo: Find and add more problems in filenames!? # Possible candidates: < > , ; = [ ] " / | \ +# Zielverzeichnis FWPN="files_with_problematic_names" +echo "Creating target directory..." mkdir "${FWPN}" cd "${FWPN}" # fwpn = f(iles)w(ith)p(roblematic)n(ames) # meier, meyer, mayer are mayr similar lastnames +# regular file +echo "Creating regular file..." echo "fwpn:word:meier" > word.txt + +# regular file +echo "Creating file with underscore..." echo "fwpn:underscore:meyer" > underscore_instead_of_space.txt + +# hidden file +echo "Creating hidden file..." echo "fwpn:hidden:mayer" > .hidden.txt + +# leading .. +echo "Creating file with two leading dots..." echo "fwpn:two dots:mayr" > ..two_dots.txt + +# leading ... +echo "Creating file with three leading dots..." echo "fwpn:three dots:meier" > ...three_dots.txt + +# leading hyphen (-) +echo "Creating file with leading hyphen..." echo "fwpn:leading hyphen:meyer" > ./-leading_hyphen.txt + +# star (*) +echo "Creating file with star..." echo "fwpn:with star:mayer" > with_*.txt + +# backslash (\) +echo "Creating file with backslash..." echo "fwpn:with backslash:mayr" > "with_\.txt" + +# (leading) blank +echo "Creating file with leading blank..." echo "fwpn:blank at the beginning:meier" > " blank.txt" + +# blank (separator) +echo "Creating file with blank..." echo "fwpn:blank as separator:meyer" > "blank as separator.txt" + +# newline +echo "Creating file with newline..." echo "fwpn:newline as separator:mayer" > "newline_as separator.txt" -echo "fwpn:tabulator as separator:mayr" > tabulator_as$'\t'separator.txt + +# tabulator +echo "Creating file with tablulator..." +echo "fwpn:tabulator as separator:mayr" > tab_as$'\t'separator.txt + +# questionmark (?) +echo "Creating file with questionmark..." echo "fwpn:with questionmark:meier" > "with_?.txt" + +# colon (:) +echo "Creating file with colon..." echo "fwpn:colon:meyer" > with_:.txt exit 0 \ No newline at end of file