Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Ernz
Friday, May 25th, 2007 at 11:16:38am UTC 

  1. #!/bin/sh
  2. # http://g-scripts.sourceforge.net
  3. # Released into the public domain.
  4. #
  5. for arg
  6. do
  7.  
  8. filetype=$(file "$arg")
  9.  
  10. if [ "$filetype" == "filetype: Bourne shell script text executable" ]; then
  11.         gdialog --title "Type 1" --msgbox "x $filetype x" 200 200;
  12. fi
  13.  
  14. #elif [ $filetype != "Hello" ]; then
  15. #       gdialog --title "Type 2" --msgbox "Type 2: $filetype" 200 200
  16. #alien $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
  17. #gdialog --title "rpm2deb" --msgbox "The file '$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS' has been converted to a Debian installer in the same directory" 200 200
  18.  
  19. done

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right