Azitech

Azimout's Linux weblog

nautilus scripts

with one comment

A useful collection of Nautilus scripts exists here.

A script that I created to move files to a specific directory:

#!/bin/bash
# move selected files to ~/togo
for arg in $(echo $NAUTILUS_SCRIPT_SELECTED_URIS|sed 's/file:\/\///');
do
mv -t <target_dir> "$arg"
done

Powered by ScribeFire.

Advertisements

Written by azimout

15/02/2008 at 13:08

Posted in Tricks

One Response

Subscribe to comments with RSS.

  1. I have just realized that the above script doesn’t work with filenames containing non-western (greek, in my case) characters. I’ll look into it and post the solution here.

    azimout

    19/02/2008 at 09:17


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: