LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-21-2011, 02:10 AM   #16
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957

Please, try to run the code without redirection and look at the results on the standard output. Just to be sure: the input file bookmarks.html is the original one as exported from "Organize bookmarks" in Firefox.
 
1 members found this post helpful.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-21-2011, 02:27 AM   #17
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Code:
anisha@linux-uitj:~/Desktop> awk '  /<H[0-9]/ {  print gensub(/.*<H[0-9].*>(.+)<\/H[0-9]>.*/,"\\1","g")  }   /HREF=/ && /https*:\/\// { print gensub(/.*<A HREF="([^ ]+)".*>(.+)<\/A>.*/,"\\2  <\\1>","g")  }  /^$/' bookmarks.html > bookmarks_with_urls
anisha@linux-uitj:~/Desktop> file bookmarks_with_urls 
bookmarks_with_urls: FORTRAN program
:relief: Perhaps there was a problem with the input file, to be sure I re-exported the bookmarks, and this time it worked and this is what I get, but the links are not being shown as URL's, anyway, thank you for the effort , now at least I am able to copy them
Code:
Bookmarks Menu                                       

bits
5.5 Packing and Unpacking Bit Strings  <http://webster.cs.ucr.edu/AoA/Windows/HTML/BitManipulationa2.html>                                                                                                        
array of bits - C / C++ answers  <http://bytes.com/topic/c/answers/215749-array-bits>                    
comp.lang.c Frequently Asked Questions  <http://c-faq.com/>                                              
Cprogramming.com - Tutorials - Bitwise Operators and Bit Manipulations in C and C++  <http://www.cprogramming.com/tutorial/bitwise_operators.html>                                                                
C syntax - Wikipedia, the free encyclopedia  <http://en.wikipedia.org/wiki/C_syntax#Bit_fields>          
Handel-C Forum - How do i specify an array of bits ??  <http://www.doc.ic.ac.uk/~akf/handel-c/cgi-bin/forum.cgi?msg=513>
 
Old 01-21-2011, 02:48 AM   #18
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
Originally Posted by Anisha Kaul View Post
but the links are not being shown as URL's, anyway, thank you for the effort , now at least I am able to copy them
You're welcome! Indeed copying the complete URLs was the aim of the task.
 
  


Reply

Tags
bookmarks, firefox, printing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox bookmarks.html not showing correct bookmarks even though file is identical. php Ubuntu 7 11-08-2008 04:12 PM
firefox bookmarks.... alaios Linux - Software 2 08-17-2005 11:09 PM
Firefox bookmarks, where are they?? grovesj2 Linux - Newbie 3 08-14-2005 04:39 PM
Firefox 1.0 Bookmarks djabbot Linux - Software 8 01-09-2005 03:53 PM
print listing of directory harnadem Linux - Newbie 2 04-25-2004 09:35 PM


All times are GMT -5. The time now is 11:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration