Sponsored Content
Top Forums Shell Programming and Scripting Formatting required with the output Post 302911963 by nikhil jain on Tuesday 5th of August 2014 01:21:14 AM
Old 08-05-2014
thanks a lot robin & rudi :-)

rudi,

Sorry for the miscommunication Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Formatting the output

Hi all, Have the following code(1) producing the results(2 & 3). Would like to know if there is a way to format the two reports created in a similar fashion. IE - The first is formatted nicely as a result of the echo "$xmpbdate $xavgs" >> $xmpbrpt However when I attempt to do the same on... (7 Replies)
Discussion started by: Cameron
7 Replies

2. Shell Programming and Scripting

formatting output

Hi need some advice.. #grep -i hostname test.csv (gives the below output) HOSTNAME,name,host_test,,,,,,,, Now I need to format the above output as below. HOSTNAME: name=host_test Any easy way of doing this using awk or sed or printf? (4 Replies)
Discussion started by: balaji_prk
4 Replies

3. UNIX Desktop Questions & Answers

Help required with formatting

I would appreciate any help (sed / awk / perl) on the following question. I have the file in the following format. Note that the records are separated by the line that starts with the word "TRACE".I want the 5th and 6th values on the line starting with "TRACE" to be repeated down the file until the... (3 Replies)
Discussion started by: digipak
3 Replies

4. Shell Programming and Scripting

Help required with formatting in scripting

Hi Friends, I need to write a script which reads the file and prints them horizontally. For example, the file contains something like x1 x2 x3 x4 x5 my script reads this file as "for i in `cat filename`", but I need an output something like "config file = x1.ccfg,... (3 Replies)
Discussion started by: dineeshkg
3 Replies

5. Shell Programming and Scripting

Formatting my output

Dear All, I am new to unix scripting. I need your help to format my output on screen. echo " --------------------------------------------" echo " | My Output |" echo " --------------------------------------------" echo " | A: $A... (5 Replies)
Discussion started by: rahiljavaid
5 Replies

6. Shell Programming and Scripting

Formatting of output

Hi Experts, I have to create a report for certain audit and my output looks as follows I m trying to format my output to look like Any inputs would be highly appreciated Thanks Syed (5 Replies)
Discussion started by: maverick_here
5 Replies

7. Shell Programming and Scripting

Output formatting .

below is a CPU utilization Log for ABC server. However for every 15 minutes it generates 3 CPU values(with interval of 2 sec). Host CPU CPUtotal CPU% time ABC 101.1 2 50.55 14 : 15 ABC 100.5 2 50.25 14 : 15 ABC 100.2 2 50.1 14 : 15 ABC 100.9 2 50.45 14 : 30 ABC 100.5 2 50.25 14 : 30 ABC... (5 Replies)
Discussion started by: pinga123
5 Replies

8. Shell Programming and Scripting

Awk help required for formatting digits.

Hi experts, I have two values in the file : For example : partcamt = 72.90 partdamt=27.9 I need to convert these values into 6 digits and ignore the "." sign so that the desired desired output is : total value= 0072000027900 Currently I am using the following code : ... (3 Replies)
Discussion started by: nua7
3 Replies

9. Shell Programming and Scripting

script to mail monitoring output if required or redirect output to log file

Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions. ... (4 Replies)
Discussion started by: aix_admin_007
4 Replies

10. Shell Programming and Scripting

Formatting output

I have the output like below: DEV#: 9 DEVICE NAME: hdisk9 TYPE: 1750500 ALGORITHM: Load Balance SERIAL: 68173531021 ========================================================================== Path# Adapter/Path Name State Mode Select Errors 0 ... (4 Replies)
Discussion started by: Daniel Gate
4 Replies
IRC::Formatting::HTML(3pm)				User Contributed Perl Documentation				IRC::Formatting::HTML(3pm)

NAME
IRC::Formatting::HTML - Convert between HTML and IRC formatting VERSION
Version 0.29 SYNOPSIS
Convert raw IRC formatting to HTML use IRC::Formatting::HTML qw/irc_to_html html_to_irc/; ... my $irctext = "02031,2Iron & Wine"; my $html = irc_to_html($irctext); print $html # the above will print: # <span style="font-weight: bold;color: #000; background-color: #008">Iron &amp; Wine</span> ... my $html = "<b><em>Nicotine and gravy</em></b>"; my $irctext = html_to_irc($html); print $html; # the above will print: # 0226Nicotine and Gravy0226 FUNCTIONS
irc_to_html irc_to_html($irctext, invert => "italic") Takes an irc formatted string and returns the HTML version. Takes an option to treat inverted text as italic text. html_to_irc html_to_irc($html) Takes an HTML string and returns an irc formatted string AUTHOR
Lee Aylward, <leedo@cpan.org> BUGS
Please report any bugs or feature requests to "bug-irc-formatting-html at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IRC-Formatting-HTML <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IRC-Formatting-HTML>. I will be notified, 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 IRC::Formatting::HTML You can also look for information at: o RT: CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=IRC-Formatting-HTML <http://rt.cpan.org/NoAuth/Bugs.html?Dist=IRC-Formatting-HTML> o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/IRC-Formatting-HTML <http://annocpan.org/dist/IRC-Formatting-HTML> o CPAN Ratings http://cpanratings.perl.org/d/IRC-Formatting-HTML <http://cpanratings.perl.org/d/IRC-Formatting-HTML> o Search CPAN http://search.cpan.org/dist/IRC-Formatting-HTML/ <http://search.cpan.org/dist/IRC-Formatting-HTML/> ACKNOWLEDGEMENTS
This is a direct port of Sam Stephenson's ruby version. COPYRIGHT &; LICENSE Copyright 2009 Lee Aylward, 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.12.4 2011-01-13 IRC::Formatting::HTML(3pm)
All times are GMT -4. The time now is 04:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy