Asked by duncanb7
at 2024-11-10 14:11:33
Point:250 Replies:9 POST_ID:828413USER_ID:11059
Topic:
Unix Operating Systems;;
I try to write a script call junk.sh to create 50 directories,
like the simple script as follows and
-----------------
echo "making directories"
mkdir 1.files
mkdir ab.files
-----------------------------
but after chmod +x junk.sh and run it like as follow in both ways
-bash-3.2$ ./junk.sh OR source junk.sh
both script command excute and make the directory name with "?" like 1.files? and ab.files?
When doing ftp to upload file, the ftp software or VBA program could not recongize
those two direcotry and fail to connect.
How to fix the script and let "?" gone ?
Is it the problem related to the command run at which shell, c shell, bash shell or sh shell ,something like that?
Please advise
Duncan
like the simple script as follows and
-----------------
echo "making directories"
mkdir 1.files
mkdir ab.files
-----------------------------
but after chmod +x junk.sh and run it like as follow in both ways
-bash-3.2$ ./junk.sh OR source junk.sh
both script command excute and make the directory name with "?" like 1.files? and ab.files?
When doing ftp to upload file, the ftp software or VBA program could not recongize
those two direcotry and fail to connect.
How to fix the script and let "?" gone ?
Is it the problem related to the command run at which shell, c shell, bash shell or sh shell ,something like that?
Please advise
Duncan