09-28-2009
Hi Danmero,
Thanks for help and solution.
I think my awk version is different, I am getting the same error.
But thanks for ur solution.
Regards,
Sreejit
---------- Post updated at 12:19 PM ---------- Previous update was at 10:30 AM ----------
Hi Danmero,
I have used nawk and it is working, is it problem if we use nawk?
I am not strong in unix. I have understood some of the line used in ur command.
I may sound greedy
But if you can help, can you please let me know the what is -F '[<|>]' is this say that whatever in between <> take it as input.
sub(/^[ \t]+/, ""); means change all tab to blank
gsub("><",">\n<"); means to change the >< with new line in between.
Sorry I didn't understand ORS=($2~"xml\|AUDITRECORDS\|\/CARF")?RS:OFS}1
If you can please explain.
But anyway thanks a lot for your help.
Regards,
Sreejit
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
i have csv file with three comma separated columns
i/p file
First_Name, Address, Last_Name
XXX, "456 New albany \n newyork, Unitedstates \n 45322-33", YYY\n
ZZZ, "654 rifle park \n toronto, canada \n 43L-w3b", RRR\n
is there any way i can remove \n (newline) from the second... (1 Reply)
Discussion started by: gowrish
1 Replies
2. Shell Programming and Scripting
Aloha! I have just over 1k of users that have permissions that they shouldn't under our system. I need to parse a provided list of usernames, check their permissions file, and strip the permissions that they are not allowed to have. If upon the permissions strip they are left with no permissions,... (6 Replies)
Discussion started by: Malumake
6 Replies
3. Shell Programming and Scripting
Hi
I have a file with lots of line feeds and form feeds (page break). Need to replace last occurrence of form feed (created by - echo "\f" ) in the file with line feed.
Please advise how can i achieve this.
TIA
Prvn (5 Replies)
Discussion started by: prvnrk
5 Replies
4. Shell Programming and Scripting
I have a base file FILE1 with the following data
FILE1.dat
21111111110001343 000001004OLFXXX029100020091112
21111111110000060 000001004ODL-CH001000020091112
22222222220000780 000001013OLFXXX006500020091112
23333333330001695 000001039OLFXXX030600020091112
23333333330000111... (2 Replies)
Discussion started by: kshuser
2 Replies
5. Shell Programming and Scripting
I have a file with varying record length in it. I need to reformat this file so that each line will have a length of 100 characters (99 characters + the line feed).
AU * A01 EXPENSE 6990370000 CWF SUBC TRAVEL & MISC
MY * A02 RESALE 6990788000 Y... (3 Replies)
Discussion started by: udelalv
3 Replies
6. Shell Programming and Scripting
Hi All,
My requirement is to remove line (3 Replies)
Discussion started by: r_t_1601
3 Replies
7. Shell Programming and Scripting
Hi All,
i have a csv file .
In the 7th column i have data that has line feed in it.
Requirement is to remove the line feed from the 7th column whenever it appears
There are 11 columns in the file
C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11
The value in C7 contains line feed ( Alt + Enter ),... (2 Replies)
Discussion started by: r_t_1601
2 Replies
8. Shell Programming and Scripting
Hi,
I've this file:
1,
2,
3,
4,
5,
6,
I need to remove the line feed LF every 3 row.
1,2,3,
4,5,6,
Thanks in advance,
Alfredo (5 Replies)
Discussion started by: alfreale
5 Replies
9. Shell Programming and Scripting
Hi! I have been struggling with a large file that has stray end of line characters.
I am working on a Mac (Lion). I mention this only because I have been mucking around with fixing my problem using sed, and I have learned far more than I wanted to know about Unix and Mac eol characters.
I... (1 Reply)
Discussion started by: user999991
1 Replies
10. Shell Programming and Scripting
Please use code tags for sample data
Hi
I have a file where there are line feeds in the data. I am not able to read the file from an application. I exported this data from Access database and many columns contain line feed.
My data looks like this
abcd,efgh,ijkl,mnop
abcd,ef... (7 Replies)
Discussion started by: dnat
7 Replies
LIFEREA(1) General Commands Manual LIFEREA(1)
NAME
Liferea - RSS/RDF and Atom news aggregator
SYNOPSIS
liferea [OPTIONS]
DESCRIPTION
Liferea (Linux Feed Reader) is an RSS/RDF and Atom news aggregator which also supports CDF channels, OCS, and OPML directories. It's
intended to be a clone of the Windows-only FeedReader. It can be used to maintain a list of subscribed feeds, browse and search through
their items and displays their contents.
OPTIONS
Liferea options:
--version
output version information and exit
--help display a option overview and exit
--mainwindow-state=STATE
Start Liferea with its mainwindow in STATE: shown, iconified, hidden
--debug-all
Print debugging messages of all types
--debug-cache
Print debugging messages for the cache handling
--debug-conf
Print debugging messages of the configuration handling
--debug-gui
Print debugging messages of all GUI functions
--debug-html
Enables HTML rendering debugging. Each time Liferea renders HTML output it will also dump the generated HTML into ~/.lif-
erea_1.6/output.xhtml.
--debug-parsing
Print debugging messages of all parsing functions
--debug-performance
Print debugging messages when a function takes too long to process
--debug-plugins
Print debugging messages for the plugin loading
--debug-trace
Print debugging messages when entering/leaving functions
--debug-update
Print debugging messages of the feed update processing
--debug-verbose
Print verbose debugging messages
DBUS INTERFACE
To allow integration with other programs Liferea profives a DBUS interface for automatic creation of new subscriptions. The script liferea-
add-feed is a convenient way to use this interface. Just pass a valid feed URL as parameter and the feed will be added to the feed list.
You can also pass non-feed URLs to use feed auto discovery. Example:
liferea-add-feed "http://www.newsforge.com/newsforge.rss"
Please note that Liferea needs to be running for liferea-add-feed to work.
ENVIRONMENT
http_proxy
If a proxy is not specified in the Liferea preferences (which uses the proxy settings in gconf), then Liferea will use the proxy
specified in $http_proxy. $http_proxy should be set to a URI specifying the desired proxy, for example 'http://proxy.exam-
ple.com:3128/'.
FILES
/usr/lib/liferea/
Contains Liferea plugins
/usr/share/liferea/css/
Contains stylesheets for feed display
/usr/share/liferea/opml/
Contains default feedlists
~/.liferea_1.6/
Contains user feedlist and feed cache
AUTHOR
This manual page was written by Lars Lindner <lars.lindner@gmail.com>.
May 12, 2009 LIFEREA(1)