initial commit
This commit is contained in:
parent
2751bc7981
commit
51f7fb9457
37
grep/generate_files_with_problematic_names
Normal file
37
grep/generate_files_with_problematic_names
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Usage: ./generate_files_with_problematic_names
|
||||||
|
# or
|
||||||
|
# bash generate_files_with_problematic_names
|
||||||
|
# Description: (see scriptname!)
|
||||||
|
# Author: Patrick Neumann (patrick@neumannsland.de)
|
||||||
|
# Version: 1.0
|
||||||
|
# Date: 27.02.2018
|
||||||
|
# License: GPL3
|
||||||
|
# Warranty: This program is distributed WITHOUT ANY WARRANTY
|
||||||
|
# Todo: Find and add more problems in filenames!?
|
||||||
|
|
||||||
|
FWPN="files_with_problematic_names"
|
||||||
|
|
||||||
|
mkdir "${FWPN}"
|
||||||
|
cd "${FWPN}"
|
||||||
|
|
||||||
|
# fwpn = f(iles)w(ith)p(roblematic)n(ames)
|
||||||
|
# meier, meyer, mayer are mayr similar lastnames
|
||||||
|
|
||||||
|
echo "fwpn:word:meier" > word.txt
|
||||||
|
echo "fwpn:underscore:meyer" > underscore_instead_of_space.txt
|
||||||
|
echo "fwpn:hidden:mayer" > .hidden.txt
|
||||||
|
echo "fwpn:two dots:mayr" > ..two_dots.txt
|
||||||
|
echo "fwpn:three dots:meier" > ...three_dots.txt
|
||||||
|
echo "fwpn:leading hyphen:meyer" > ./-leading_hyphen.txt
|
||||||
|
echo "fwpn:with star:mayer" > with_*.txt
|
||||||
|
echo "fwpn:with backslash:mayr" > "with_\.txt"
|
||||||
|
echo "fwpn:blank at the beginning:meier" > " blank.txt"
|
||||||
|
echo "fwpn:blank as separator:meyer" > "blank as separator.txt"
|
||||||
|
echo "fwpn:newline as separator:mayer" > "newline_as
|
||||||
|
separator.txt"
|
||||||
|
echo "fwpn:tabulator as separator:mayr" > tabulator_as$'\t'separator.txt
|
||||||
|
echo "fwpn:with questionmark:meier" > with_?.txt
|
||||||
|
|
||||||
|
exit 0
|
Loading…
x
Reference in New Issue
Block a user