I am creating a folder like
mkdir -p ../service/target/static
but windows creates it with some special character static
. I need to explicitely remove that special character using shell script.
I tried with rn and mv commands but doesn't seem to work and rename command giving error command not found.
mkdir -p '../service/target/static'
– user3439894 Mar 14 '19 at 13:32mkdir
command in a shell script? If so, the script might have DOS/Windows-style line endings, which include a carriage return character that the unix shell will treat as part of the command line (and in this case, part of the filename). See this stackoverflow question. – Gordon Davisson Mar 14 '19 at 20:28mv static? staticx
would not change the special character to the letterx
? – David Anderson Mar 14 '19 at 21:53