Hi guys hope you can help.
Ive got the following code snippet that is not working when using the read function.
echo -n "Enter the menu1 parent folder name that this menu2 file will reside in. This is used to create the extraction file.";
/bin/echo;
read parent;
cd /var/www/html/simeswiki/te
mplates;
cp extract_menu_files_menu2to
4_x_from_d
b.php /var/www/html/simeswiki/in
cludes/ext
ract_menu_
files_menu
2to4_$pare
nt_from_db
.php;
dir /var/www/html/simeswiki/in
cludes/ext
ract_menu_
files_menu
2to4_$pare
nt_from_db
.php;;
Problem:
/var/www/html/simeswiki/in
cludes/ext
ract_menu_
files_menu
2to4_.php
Notice in the above that the $parent part is being shaved off...it is not being displayed.
Any help greatly appreciated.
Start Free Trial