5

grep cut in a cue file-mkdir result directory name with interrogative point

view full story
linux-howto

http://askubuntu.com – hi i have encountered for me a mysterious problem; i do this: var=grep GENRE Billy_Cobham_-_Drum_\&_Voice_2.cue | cut -d ' ' -f 3 mkdir $var the file.cue interested line is: REM GENRE Funky+Jazz when mkdir create directory, the directory showed with ls is: Funky+Jazz? I have maked many many test to understand with awk with echo etc.ect seem to be the grep cut results "Funky+Jazz" have an automatic "staring new line" and generate the strange result in mkdir. if i open terminal in the Funky+Jazz directory the shell appear as: $ @host:~/Desktop/test/5/Funky+Jazz (HowTos)