Friday, December 03, 2010

nautilus-script to hide files.

#!/bin/bash

for i in "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
do
file=`echo $i|grep -oE '[^/]+$'`
path=`echo $i|grep -oE '^.+[/]'`
mv "${path}${file}" "${path}.${file}"
done

No comments: