open windows's .url file in unix | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

open windows's .url file in unix

UNIX for Dummies Questions & Answers


Tags
url, windows

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-18-2010
hz_i3 hz_i3 is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 27 May 2011, 8:49 PM EDT
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Question open windows's .url file in unix

In windows, I can create a shortcut for websites. It's a .url file.

the content of the file is like:

Quote:
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,11
[InternetShortcut]
URL=https://www.unix.com/
IDList=
HotKey=0
How can I open it, the .url file, in firefox or google chrome in Unix(or just ubuntu)?
Sponsored Links
    #2  
Old 06-18-2010
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 April 2014, 5:09 PM EDT
Location: Saskatchewan
Posts: 18,531
Thanks: 681
Thanked 3,036 Times in 2,856 Posts
If it's 16-bit UNICODE, as some Windows "text" things are, you'll need to translate it to ASCII or UTF8 first. If it's encoded in 8-bit:


Code:
grep 'URL=' < file.url | sed 's/URL=//g' | xargs firefox

I think 16-bit would work like this:

Code:
iconv --from-code UTF-16 --to-code UTF-8 file.url | 
        grep 'URL=' | sed 's/URL=//g' | xargs firefox

The Following User Says Thank You to Corona688 For This Useful Post:
hz_i3 (07-03-2010)
Sponsored Links
    #3  
Old 06-18-2010
hz_i3 hz_i3 is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 27 May 2011, 8:49 PM EDT
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Thanks! it works!
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cannot set user id: Resource temporarily unavailable (not open file/open process related) Katahdin Red Hat 0 04-26-2010 02:57 PM
Open .zip file created in UNIX sam99 UNIX for Dummies Questions & Answers 5 07-04-2008 07:58 AM
open unix file in windows ganesh Shell Programming and Scripting 3 08-31-2005 03:47 PM
How do u open a read only file in Unix? JosephGerard UNIX for Dummies Questions & Answers 1 07-21-2005 06:48 PM
open a picture file in unix (putty) javatutor UNIX for Dummies Questions & Answers 2 06-10-2003 11:21 AM



All times are GMT -4. The time now is 05:24 PM.