39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
#!/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!?
|
|
# Possible candidates: < > , ; = [ ] " / | \
|
|
|
|
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"
|
|
echo "fwpn:colon:meyer" > with_:.txt
|
|
|
|
exit 0 |