Hello I'm trying to write a shell script which can remove a carriage return and/or line feed from a file, so the resulting file all ends up on one line.
So, I begin with a file like this
text in file!<CR>
line two!<CR>
line three!<CR>
END!<CR>
And I want to end up with a file... (1 Reply)
I am doing some edi where translations had to be run on unix. Generally when I run the translations on windows, the output file has both carriage returns and line feed where as when ran on unix will have only line feed. I need to insert carriage return before the line feed. Is there some tool... (2 Replies)
Hi,
I have a situation where I need to remove the carriage return between the lines.
For.eg.
The input file:
1,ad,"adc
sdfd",edf
2,asd,"def
fde",asd
The output file should be
1,ad,adc sdfd,edf
2,asd,def fde,asd
Thanks
Shash (5 Replies)
I want to instert Category:XXXXX into the 2. line
something like this should work, but I have somewhere the wrong sytanx. something with the linebreak goes wrong:
sed "2i\\${n}Category:$cat\n"
Sample:
Titel Blahh Blahh abllk sdhsd sjdhf
Blahh Blah Blahh
Blahh
Should look like... (2 Replies)
I keep running into the same problem with the following script. Every time it prints the carrage (line feed) char when I test. I believe that the issue is in the group by but I do not see it. The code is as follows.
SET FEED OFF
SET ECHO OFF
SET HEADING OFF
SET LINESIZE 1000
SET PAGESIZE... (1 Reply)
Hi
I am using sed command to make SCORE=somevalue to SCORE=blank in a file.
Please see the attached lastline.txt file. After executing the below command on the file, it removes the last line.
cat lastline.txt | sed 's/SCORE=.*$/SCORE=/g' > newfile.txt
Why does sed command remove the... (3 Replies)
Hi,
need your help in below,I have 4 types of file need to be processed so that it will replace carriage return in Remarks column with <:::>
Remarks column position may varies in different types of file.
sample file:
col1|col2|col3|col4|col5|col6|col7|Remarks|col9|col10... (8 Replies)
Hi Forum.
I'm running the following awk command to extract the suffix value (pos 38) from the "AM00" record and append to the end of the "AM01" record.
awk 'substr($0,13,4)=="AM00" {SUFFIX = substr($0,38,2)} substr($0,13,4)=="AM01" {$0 = $0 SUFFIX} 1' before.txt > after.txt
Before.txt:... (2 Replies)
Discussion started by: pchang
2 Replies
LEARN ABOUT DEBIAN
wiki::toolkit::feed::listing
Wiki::Toolkit::Feed::Listing(3pm) User Contributed Perl Documentation Wiki::Toolkit::Feed::Listing(3pm)NAME
Wiki::Toolkit::Feed::Listing - parent class for Feeds from Wiki::Toolkit.
DESCRIPTION
Handles common data fetching tasks, so that child classes need only worry about formatting the feeds.
Also enforces some common methods that must be implemented.
METHODS
"fetch_recently_changed_nodes"
Based on the supplied criteria, fetch a list of the recently changed nodes
"fetch_newest_for_recently_changed"
Based on the supplied criteria (but not using all of those used by fetch_recently_changed_nodes), find the newest node from the recently
changed nodes set. Normally used for dating the whole of a Feed.
"fetch_node_all_versions"
For a given node (name or ID), return all the versions there have been, including all metadata required for it to go into a "recent
changes" style listing.
"recent_changes"
Build an Atom Feed of the recent changes to the Wiki::Toolkit instance, using any supplied parameters to narrow the results.
If the argument "also_return_timestamp" is supplied, it will return an array of the feed, and the feed timestamp. Otherwise it just returns
the feed.
"node_all_versions"
Build an Atom Feed of all the different versions of a given node.
If the argument "also_return_timestamp" is supplied, it will return an array of the feed, and the feed timestamp. Otherwise it just returns
the feed.
"format_geo"
Using the geo and space xml namespaces, format the supplied node metadata into geo: and space: tags, suitable for inclusion in a feed with
those namespaces imported.
The following are methods that any feed renderer must provide:
"feed_timestamp"
All implementing feed renderers must implement a method to produce a feed specific timestamp, based on the supplied node
"generate_node_list_feed"
All implementing feed renderers must implement a method to produce a feed from the supplied list of nodes
"generate_node_name_distance_feed"
All implementing feed renderers must implement a method to produce a stripped down feed from the supplied list of node names, and
optionally locations and distance from a reference point.
"parse_feed_timestamp"
Take a feed_timestamp and return a Time::Piece object.
MAINTAINER
The Wiki::Toolkit team, http://www.wiki-toolkit.org/.
COPYRIGHT AND LICENSE
Copyright 2006-2009 the Wiki::Toolkit team.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-09-25 Wiki::Toolkit::Feed::Listing(3pm)