Results 1 to 8 of 8

Thread: remove sertain text from terminal output for nautilus script

  1. #1
    Join Date
    Jan 2013
    Beans
    29

    remove sertain text from terminal output for nautilus script

    hi
    so I am doing a nautilus script that uses a file to run a command in a directory but $NAUTILUS_SCRIPT_CURRENT_URI adds "file://" and I want to remove that, here is my script if it helps
    Code:
    frmdata=$(yad --title "script 1" --entry --text="please incert the URL")
    ~/.aa\ sh\ tools/tumbdl.sh $frmdata $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS

  2. #2
    Join Date
    Jul 2012
    Beans
    31

    Re: remove sertain text from terminal output for nautilus script

    Simple use rm -rf to delte the file

  3. #3
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: remove sertain text from terminal output for nautilus script

    Try

    Code:
     ${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS/file\:\/\/}
    instead of

    Code:
     $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS

  4. #4
    Join Date
    Jan 2013
    Beans
    29

    Re: remove sertain text from terminal output for nautilus script

    Quote Originally Posted by vipulkumar7 View Post
    Simple use rm -rf to delte the file
    there is no file, it is a filepath

  5. #5
    Join Date
    Jan 2013
    Beans
    29

    Re: remove sertain text from terminal output for nautilus script

    neither worked

  6. #6
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: remove sertain text from terminal output for nautilus script

    I tested the method in post #3 like this and it worked.

    Code:
    $ NAUTILUS_SCRIPT_SELECTED_FILE_PATHS=file://svammel
    $ echo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
    file://svammel
    $ echo  ${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS/file\:\/\/}
    svammel
    Maybe there is some other error in your script.

  7. #7
    Join Date
    Jan 2013
    Beans
    29

    Re: remove sertain text from terminal output for nautilus script

    any way to see nautilus working in the terminal? watching what happens can help

  8. #8
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: remove sertain text from terminal output for nautilus script

    What do you want to do?

    It is probably easier to help you this way. Maybe there is another way to do it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •