Make text file named "Extract to Folder" in ~/.gnome2/nautilus-scripts/ then just put the following code into it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
newfolder=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | sed 's/\.[^.]*$//') | |
mkdir -p $newfolder | |
file-roller -e $newfolder $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS |
make it executable using $chmod +x ~/gnome2/nautilus-scripts/Extract\ to\ Folder
and now you can use it in nautilus by simply right click > Scripts > Extract to Folder.
0 comments:
Post a Comment