Sponsored Content
Full Discussion: Allign text html
Top Forums Shell Programming and Scripting Allign text html Post 302434537 by pseudocoder on Saturday 3rd of July 2010 08:00:55 AM
Old 07-03-2010
Code:
while read line; do
echo "$line" | grep "^$" >/dev/null 2>&1 && (echo; echo) || echo -n $line
done <file ; echo
<span class="time"><strong>06:00</strong></span>

<div class="cDesc" style="display: none">TEXTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT</div>

<div class="cTitle" style="display: none">TEXTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT</div>
$

This User Gave Thanks to pseudocoder For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

html - text file question

Hi - not sure if this is the correct forum but maybe you can help all the same. I have an ascii file on my server that I log events to.. I have samba and apache running on this server also - although I am not currently using them and have just started them up. They both appear fine so far. I... (5 Replies)
Discussion started by: frustrated1
5 Replies

2. UNIX for Dummies Questions & Answers

How do I extract text only from html file without HTML tag

I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part. Same problem happens in "type" command in MS-DOS. I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies

3. Shell Programming and Scripting

Converting a text file to HTML

Hi, I need to convert a text file formatted like this ("tshark -z conv,ip" output) to HTML: ===================================================================================================== IPv4 Conversations Filter:<No Filter> | <- ... (4 Replies)
Discussion started by: ph0enix
4 Replies

4. Shell Programming and Scripting

outputting a text file in html

is there anyway i can paste/cat a text file into a html paragraph <p> function html_header { cat <<END <html> <head><title>${1}</title></head> <body> <p> ${2} </p> END } function html_footer { cat <<END </body> </html> END (2 Replies)
Discussion started by: magnia
2 Replies

5. Web Development

How to indent the second line of text in html?

Hi, I have 3 lines in a text and i want to indent the 2nd line of the text. How can i do that in html? Here is the text. 1: XYZ. 2009 Jul 14. Perl is a scripting language. Perl is a high-level, general-purpose, interpreted, dynamic programming language ID: 2547999 The output... (1 Reply)
Discussion started by: vanitham
1 Replies

6. Shell Programming and Scripting

Allign the output

Hi I have an SQL which returns me the o/p as below in an unformatted manner Table Size No. ============================================= DEF 22 2 PAF 3 1 99D 12 1 USERS 6 1 04D 4 ... (4 Replies)
Discussion started by: jjoy
4 Replies

7. Shell Programming and Scripting

Parsing HTML, get text between 2 HTML tags

Hi there, I'm quite new to the forum and shell scripting. I want to filter out the "166.0 points". The results, that i found in google / the forum search didn't helped me :( <a href="/user/test" class="headitem menu" style="color:rgb(83,186,224);">test</a><a href="/points" class="headitem... (1 Reply)
Discussion started by: Mysthik
1 Replies

8. Shell Programming and Scripting

Allign the text result of a for/next cicle

Dear community, probably is quite easy, but I'm scratching my head to find a solution on Red Hat bash. What I have to do is to allign the result of a for/next cicle, something like: $ printf("%-5s %05x %5d\n", $next, $Server, $Client) -sh: syntax error near unexpected token `"%-5s %05x... (4 Replies)
Discussion started by: Lord Spectre
4 Replies

9. Shell Programming and Scripting

HTML Conversion of text file

Hi, I have following text file. I want to convert it into the below HTML format. Kindly help. Input Text File Header 1 ======= Name:*** Age:*** Address:*** Work Phone:*** Email:*** Mobile:*** Country:*** City:*** Pincode:*** some text here **** (10 Replies)
Discussion started by: ctrld
10 Replies

10. Shell Programming and Scripting

Format text file to html

Hi Experts, Anybody out there figure out on how to achieve in shell scripts or tools. I have done googling to find solutions but no luck. I have thousands of .txt files to batch process, please see the below sample text content after -------- start here --------. What I want to achieve is to... (10 Replies)
Discussion started by: lxdorney
10 Replies
PAPS(1) 						      General Commands Manual							   PAPS(1)

NAME
paps - UTF-8 to PostScript converter using Pango SYNOPSIS
paps [options] files... DESCRIPTION
paps reads a UTF-8 encoded file and generates a PostScript language rendering of the file. The rendering is done by creating outline curves through the pango ft2 backend. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. --landscape Landscape output. Default is portrait. --columns=cl Number of columns output. Default is 1. Please notice this option isn't related to the terminal length as in a "80 culums terminal". --font=desc Set the font description. Default is Monospace 12. --rtl Do right to left (RTL) layout. --paper ps Choose paper size. Known paper sizes are legal, letter and A4. Default is A4. Postscript points Each postscript point equals to 1/72 of an inch. 36 points are 1/2 of an inch. --bottom-margin=bm Set bottom margin. Default is 36 postscript points. --top-margin=tm Set top margin. Default is 36 postscript points. --left-margin=lm Set left margin. Default is 36 postscript points. --right-margin=rm Set right margin. Default is 36 postscript points. --gutter-width=gw Set gutter width. Default is 40 postscript points. --help Show summary of options. --header Draw page header for each page. --markup Interpret the text as pango markup. --lpi Set the lines per inch. This determines the line spacing. --cpi Set the characters per inch. This is an alternative method of specifying the font size. --stretch-chars Indicates that characters should be stretched in the y-direction to fill up their vertical space. This is similar to the texttops behaviour. AUTHOR
paps was written by Dov Grobgeld <dov.grobgeld@gmail.com>. This manual page was written by Lior Kaplan <kaplan@debian.org>, for the Debian project (but may be used by others). April 17, 2006 PAPS(1)
All times are GMT -4. The time now is 10:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy