Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Sed $ appending to front, not to the end Post 302416843 by thegeek on Wednesday 28th of April 2010 01:07:34 AM
Old 04-28-2010
Works for me...
Code:
cat > i
Fred Fardbarkle:674-843-1385:20 Parak Lane, Duluth, MN 23850:4/12/23:780900
Fred Fardbarkle:674-843-1385:20 Parak Lane, Duluth, MN 23850:4/12/23:780900
sed '/^Fred/s/$/***/' i
Fred Fardbarkle:674-843-1385:20 Parak Lane, Duluth, MN 23850:4/12/23:780900***
Fred Fardbarkle:674-843-1385:20 Parak Lane, Duluth, MN 23850:4/12/23:780900***

 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Front end on Unix

Hi, I would like to develop a user interface on Solaris. Can anybody throw some light on currently available software utilities/ packages..? Thanks in Advance .. JS (4 Replies)
Discussion started by: shibz
4 Replies

2. Programming

Running exe's from front end

Hi, I have created a tool which analyses and debugs cobol programs on Unix environment usin the C files. I now want to create a frontend for the tool in windows. For this i need to establish some kinda communication between the front the end and the back end. I know pipes in one way of... (0 Replies)
Discussion started by: Sinbad
0 Replies

3. Shell Programming and Scripting

remove space in front or end of each field

Hi, I have a txt file called a.txt which contain over 10,000 records and I would like to remove space before comma or after comma....like below: The input (for example two record 00001,00002): 00001,client,card limited ,02292,N ,162:41 , 192, ... (6 Replies)
Discussion started by: happyv
6 Replies

4. Shell Programming and Scripting

Appending the last few columns to the front

Hi consider this as the first line 00010015 MORGAN STANLEY & CO INCORPORATED N 110 INVESTAR 1 0001OT NJ 201-830-5055 01-Jan-1974 00:00:00 1 01-May-2008 00:00:00 05-Jun-2008 13:34:18 0001 - From SMSRun1_GIDQA02 Consider this as the second line 00010015 MORGAN STANLEY... (3 Replies)
Discussion started by: ragavhere
3 Replies

5. UNIX for Dummies Questions & Answers

Communicate to the OS(linux) using front end.

Hi guys , I want to develop a web page which is capable of executing the command on os and show the output on the browser.(Which involves reading and writing too.) I m using jsp language to develop the web page. How would i use it to communicate with my linux server? Any... (3 Replies)
Discussion started by: pinga123
3 Replies

6. UNIX for Dummies Questions & Answers

Appending columns at the end of output using awk/sed

Hi , I have the below ouput, =====gopi===== assasassaa adsadsadsdsada asdsadsadasdsa sadasdsadsd =====kannan=== asdasdasd sadasddsaasd adasdd =====hbk=== asasasssa .... .. I want the output like as below, not able paste here correctly. (2 Replies)
Discussion started by: eeegopikannan
2 Replies

7. Programming

Publish notification via application front end

hi All I use tomcat server to publish war file. How to send an notification to users via the application screen and it should dismiss once user clicks X mark. Any suggestions ? (0 Replies)
Discussion started by: anil529
0 Replies

8. Programming

Recommendation: gede - graphical gdb front-end

gede is a graphical debugger, a front-end for good ole uncle gdb. gede doesn't need a specialized gdb version. :b: Unfortunately its a qt app, nevertheless it fits well in a gtk desktop environment.:eek: Its author Johan Henriksson is a smart and nice guy always open for bug reports and... (2 Replies)
Discussion started by: dodona
2 Replies
HTML::FormatText::WithLinks::AndTables(3)		User Contributed Perl Documentation		 HTML::FormatText::WithLinks::AndTables(3)

NAME
HTML::FormatText::WithLinks::AndTables - Converts HTML to Text with tables in tact VERSION
Version 0.01 SYNOPSIS
use HTML::FormatText::WithLinks::AndTables; my $text = HTML::FormatText::WithLinks::AndTables->convert($html); Or optionally... my $conf = { # same as HTML::FormatText excepting below cellpadding => 2, # defaults to 1 no_rowspacing => 1, # bool, suppress vertical space between table rows }; my $text = HTML::FormatText::WithLinks::AndTables->convert($html, $conf); DESCRIPTION
This module was inspired by HTML::FormatText::WithLinks which has proven to be a useful `lynx -dump` work-alike. However one frustration was that no other HTML converters I came across had the ability to deal affectively with HTML <TABLE>s. This module can in a rudimentary sense do so. The aim was to provide facility to take a simple HTML based email template, and to also convert it to text with the <TABLE> structure in tact for inclusion as "multipart/alternative" content. Further, it will preserve both the formatting specified by the <TD> tag's "align" attribute, and will also preserve multiline text inside of a <TD> element provided it is broken using <BR/> tags. EXPORT None by default. METHODS
convert EXAMPLE
Given the HTML below ... <HTML><BODY> <TABLE> <TR> <TD ALIGN="right">Name:</TD> <TD>Mr. Foo Bar</TD> </TR> <TR> <TD ALIGN="right">Address:</TD> <TD> #1-276 Quux Lane, <BR/> Schenectady, NY, USA, <BR/> 12345 </TD> </TR> <TR> <TD ALIGN="right">Email:</TD> <TD><a href="mailto:foo@bar.baz">foo@bar.baz</a></TD> </TR> </TABLE> </BODY></HTML> ... the (default) return value of convert() will be as follows. Name: Mr. Foo Bar Address: #1-276 Quux Lane, Schenectady, NY, USA, 12345 Email: [1]foo@bar.baz 1. mailto:foo@bar.baz SEE ALSO
HTML::FormatText::WithLinks HTML::TreeBuilder CAVEATS
* This does not handle <TH> elements whatsoever! * It assumes a fixed width font for display of resulting text. * It doesn't work well on nested <TABLE>s or other nested blocks within <TABLE>s. AUTHOR
Shaun Fryer, "<pause.cpan.org at sourcery.ca>" BUGS
Please report any bugs or feature requests to "bug-html-formattext-withlinks-andtables at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-FormatText-WithLinks-AndTables>. I will be notifi ed, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc HTML::FormatText::WithLinks::AndTables You can also look for information at: o RT: CPAN's request tracker <http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-FormatText-WithLinks-AndTables> o AnnoCPAN: Annotated CPAN documentation <http://annocpan.org/dist/HTML-FormatText-WithLinks-AndTables> o CPAN Ratings <http://cpanratings.perl.org/d/HTML-FormatText-WithLinks-AndTables> o Search CPAN <http://search.cpan.org/dist/HTML-FormatText-WithLinks-AndTables> ACKNOWLEDGEMENTS
Everybody. :) <http://en.wikipedia.org/wiki/Standing_on_the_shoulders_of_giants> COPYRIGHT &; LICENSE Copyright 2008 Shaun Fryer, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2014-06-10 HTML::FormatText::WithLinks::AndTables(3)
All times are GMT -4. The time now is 01:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy