0

I'm trying to have auto script to open dir on any removable device - different usb have different names and i want the user only to enter the device name since the path /media/user is a default in most os linux sys. Here is the code:

#!/bin/bash
F= `zenity --entry`
mkdir /media/user/${F}/new+directory

the interpreter doesn't recognize the variable - any solution / suggestions?

1

1 Answer 1

0

Remove the space after the =. Space separates commands from assignments in bash.

F=`zenity --entry`

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .