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?

choroba
  • 10,313

1 Answers1

0

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

F=`zenity --entry`
choroba
  • 10,313