[Gutsy]Looking for a program that analyzes a file and makes a "best guess" attempt to identify or provide information
Peter Garrett
peter.garrett at optusnet.com.au
Sat Dec 29 08:45:31 UTC 2007
On Thu, 27 Dec 2007 12:54:19 -0500
"John Toliver" <john.toliver at gmail.com> wrote:
> Looking at the MAN pages for this command makes me think it's probably not
> the one to try and do a script on.
I don't know how sophisticated you want to be about it, but I just put
this in ~/.gnome2/nautilus-scripts/ , to see what would happen, and it
works... it appears in the nautilus right-click scripts menu , and gives
the output in a pop-up text box. Obviously, there are many other options
to "file" that could be included or scripted.
#----------------------------------------------------------------------------#
#!/bin/bash
file -kr "$@" > /tmp/file.output
zenity --title "File Information" --text-info $FILE < /tmp/file.output
#-----------------------------------------------------------------------------#
Peter
--
"INX Is Not X" based on Ubuntu 7.04 Live CD: http://inx.maincontent.net
Screenshots slideshow: http://inx.maincontent.net/album/1.png.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071229/26c8ba4d/attachment.sig>
More information about the ubuntu-users
mailing list