Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wrote the following script to use it in Nautilus. It merges files into folders. But when I try this for sftp://user@mynas/ it is not working. How can I fix the script to get it working via the remote connections, too?

#!/bin/bash

IFS=$'\n';
for fullfile in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS 
do
  filename=$(basename "$fullfile")
  filename=${filename%.*}
  mkdir $filename
  mv -f $(basename "$fullfile") ./$filename
done
share|improve this question
    
What happens when you run the script? An error, or an unexpected result? –  fabricator4 Dec 15 '12 at 10:06
    
Actually, nothing happens. Locally it works just fine. –  user114809 Dec 15 '12 at 12:12
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.