PDA

View Full Version : [SOLVED] Filename read bash



j_arquimbau
June 4th, 2011, 09:46 AM
I know it might be a very simple question, but I've been looking for an answer and I haven't been able to find it, may be because of the search terms...

I'd like to create a Nautilus right-button bash script (~/.gnome2/nautilus-scripts/) that would create a symbolic link to the file and then move the original file to an specific destination.

How could I set the filename variable in bash? Would it be some kind of:

filename=$ read 'whatever'

I have on clue on this.

Thank you in advance!

j_arquimbau
June 4th, 2011, 10:22 AM
Got it:

https://help.ubuntu.com/community/NautilusScriptsHowto

path="${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS}"