Sponsored Content
Top Forums Shell Programming and Scripting Script to parse bookmarks file Post 302894919 by ozgadgetguy on Friday 28th of March 2014 12:56:21 AM
Old 03-28-2014
Script to parse bookmarks file

I am using Internet Explorer v10 at work and regularly need to import my personal Firefox bookmarks over. Long story short, I have found the import falling over on any bookmark elements which are over 256 characters.

The bookmark file contains bookmarks of this format:

<DT><A HREF="http://www.lasoo.com.au/" ADD_DATE="1394006093" LAST_MODIFIED="1394006093">bookmark text is here</A>

If the text from HREF onwards, up to but not including the “<” of the “</A>” is great than 255 characters then the import fails.

Can anyone suggest a script which can identify the offending lines so I can manually edit them?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help!!! Shell script to parse data file.

I am faced with a :confused: tricky problem to parse a data file ( May not be a tricky problem to the scripting guru's ). Here is what I am faced with. I have a file with multiple rows of data and the rows are not of fixed length. "|" is used as a delimiters for individual columns and each row... (3 Replies)
Discussion started by: yajaykumar
3 Replies

2. Shell Programming and Scripting

Parse file and copy value to variable in sh script.

Hi, I need to parse a simple text file like below and store the word that starts with BR* to a variable say $BRno. I need to do this in sh script. NOTE: the length of the numbers following BR is not constant (eg: it could be BR1234 or BR22233). And there is only 1 BRxxxxx in a file at a given... (6 Replies)
Discussion started by: script2010
6 Replies

3. Shell Programming and Scripting

Bash Shell Script to parse file

Raw Results: results|192.168.2|192.168.2.1|general/udp|10287|Security Note|For your information, here is the traceroute from 192.168.2.24 to 192.168.2.1 : \n192.168.2.24\n192.168.2.1\n\n results|192.168.2|192.168.2.1|ssh (22/tcp)|22964|Security Note|An SSH server is running on this port.\n... (2 Replies)
Discussion started by: jroberson
2 Replies

4. Shell Programming and Scripting

Script to parse a file faster

My example file is as given below: conn=1 uid=oracle conn=2 uid=db2 conn=3 uid=oracle conn=4 uid=hash conn=5 uid=skher conn=6 uid=oracle conn=7 uid=mpalkar conn=8 uid=anarke conn=1 op=-1 msgId=-1 - fd=104 slot=104 LDAPS connection from 10.10.5.6 to 10.18.6.5 conn=2 op=-1 msgId=-1 -... (7 Replies)
Discussion started by: sags007_99
7 Replies

5. UNIX for Dummies Questions & Answers

Help to parse csv file with shell script

Hello ! I am very aware that this is not the first time this question is asked here, because I have already read a lot of previous answers, but none of them worked, so... As said in the title, I want to read a csv file with a bash script. Here is a sample of the file: ... (4 Replies)
Discussion started by: Grhyll
4 Replies

6. Shell Programming and Scripting

script to parse the properties file

Hi Friends, I have a requirement to parse a properties file having a key=value pairs. i need to count the number of key value pairs in the properties file and iterate through each key-value pair. I have written the script to read the number of lines from the property file, but cannot... (2 Replies)
Discussion started by: prashdeep
2 Replies

7. Shell Programming and Scripting

AWK script to parse a data in a file

Hi Unix gurus.. I have a file which has below data, It has several MQ Queue statistics; QueueName= 'TEST1' CreateDate= '2009-10-30' CreateTime= '13.45.40' QueueType= Predefined QueueDefinitionType= Local QMinDepth= 0 QMaxDepth= 0 QueueName= 'TEST2' CreateDate= '2009-10-30'... (6 Replies)
Discussion started by: dd_psg
6 Replies

8. Shell Programming and Scripting

Script to test bookmarks

Does anyone have a script to test for invalid bookmarks? I have a ton of them and I'd bet that a good percentage could be dropped. Tnx (4 Replies)
Discussion started by: ongoto
4 Replies

9. Shell Programming and Scripting

Script parse file Linux

Hi all, I need help for a script that pulls out a series of numbers from a file (attached file) Basically I need a parse to write me in a variable: 9d424312 Can someone help me? Thank you (2 Replies)
Discussion started by: gianvitolinuxs
2 Replies

10. Homework & Coursework Questions

Script parse file

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Hi all, I need help for a script that pulls out a series of numbers from a file (attached file) Basically I... (1 Reply)
Discussion started by: gianvitolinuxs
1 Replies
TREELINE(1)															       TREELINE(1)

NAME
treeline - an information storage program SYNOPSIS
treeline [qt-options--][infile] treeline [import-option][export-option][misc-options]infile[infile2...] DESCRIPTION
Do you have lots of sticky notes lying around with various useful information jotted down? Or many lists of books, movies, links, website logins, personal contacts, or things to do? Can you find them when you need them? Well, I often couldn't. So here's my answer. Some would call TreeLine an Outliner, others would call it a PIM. Basically, it just stores almost any kind of information. A tree struc- ture makes it easy to keep things organized. And each node in the tree can contain several fields, forming a mini-database. The output for- mat for each node can be defined, and the output can be shown on the screen, printed, or exported to HTML. TreeLine is used to organize and store text data in a tree structure. It is well suited to keeping track of many different types of infor- mation. Each node of the tree can contain several defined fields, forming a mini-database. The format of each node can be defined, and the output can be shown on the screen, printed, or exported to HTML. The tree structure is navigated and edited in the left pane of the window, while various views of the child data are shown and editable in the right pane. The data is stored in XML text files. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. Qt-options: see Qt documentation for valid Qt options Import-options: --import-tabbed import a tab indented text file --import-table import a tab-delimitted text table, one node per line --import-lines import plain text, one node per line --import-para import plain text, one node per paragraph --import-treepad import a Treepad text-node file --import-xbel import an XML bookmark file in XBEL format --import-mozilla import an html bookmark file in Mozilla format --import-xml import a generic XML file (non-TreeLine format) Export-options: --export-html export a single HTML file --export-dir export HTML in directories --export-xslt export an XSLT file --export-tabbed export a tab indented text file --export-table export a text table of the first children only --export-xbel export an XML bookmark file in XBEL format --export-mozilla export an html bookmark file in Mozilla format --export-xml export a generic XML file (non-TreeLine format) Misc-options: -o, --outfile=FILE output filename, not used with multiple infiles -n, --no-root exclude the root node form the output if applicable --add-header add a header and footer to HTML exports --indent=NUM change the indent amount for HTML exports (default=20) -q, --quiet supress normal status information, only give errors -h, --help display this information and exit No more than one import-option and one export-option may be specified. If either are not present, the native TreeLine file format is assumed. The output filename option can only be specified if there is only one input file. If it is not specified, the input's base file name is used with the appropriate output file extension. If the extensions are the same, an underscore is added before the extension. Note that this avoids overwriting the input file, but other files may be overwritten without notification if they share the output file's name. SEE ALSO
You can find more extensive help about treeline in /usr/share/doc/treeline/README.html AUTHOR
treeline was written by Doug Bell <doug101@bellz.org>. This manual page was written by Miriam Ruiz <little_miry@yahoo.es>, for the Debian project (but may be used by others). enero 3, 2006 TREELINE(1)
All times are GMT -4. The time now is 04:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy