Sponsored Content
Full Discussion: Those simple one liners
The Lounge What is on Your Mind? Those simple one liners Post 302793493 by Corona688 on Friday 12th of April 2013 12:39:39 PM
Old 04-12-2013
Quote:
Originally Posted by MadeInGermany
Yep, it's already a bad habit to replace an unconditional {print} with 1.
That's an important part of how the language works, though, and used for a lot more than an implied 'print'. It's not a hack, any more than FS is a hack -- neither of them are things which people will understand unless explained.
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

invaluable resource for shell one liners and more

Hi all, This link might help whom is seeking a quick solutions for thier daily shell needs. linkAll commands | commandlinefu.com (1 Reply)
Discussion started by: h@foorsa.biz
1 Replies

2. Shell Programming and Scripting

awk - one liners

Guys, I have a requirement like this. A file has >5K records always. Separated by "|", it has 30 fields for each line. In some lines, I am getting an odd field. say, the 15th field is supposed to be 2 characters but comes in as >2. In this case, for resolving this I need to copy the value of... (6 Replies)
Discussion started by: PikK45
6 Replies

3. Shell Programming and Scripting

awk one liners into a nice script

Hi All, I got some awk one liners, how can i split it all into a nice script? Got these: gzcat capgw0.log-201308161376632741.gz | sed -n '/2013-08-16 05:56:/,/2013-08-16 05:58:/p' > timebased.log awk -F":|," 'FNR==NR && /INFO - AId:/ {a=$0;next} END {for (i in a) print i "|" a}'... (8 Replies)
Discussion started by: batka
8 Replies

4. What is on Your Mind?

One liners, quick rant...

Hi fellas and fella-esses... There are numerous threads on here where people ask for, and often expect, solutions to difficult problems solved using _one_liners_. Why do they insist as such when it is virtually no different in execution time with well thought out indented code? Is it me... (12 Replies)
Discussion started by: wisecracker
12 Replies
RTF2RTF(1)						      General Commands Manual							RTF2RTF(1)

NAME
rtf2rtf - programs to postprocess the raw RTF generated by the mapping files SYNOPSIS
rtf2rtf [options] .. DESCRIPTION
This manual page documents briefly the rtf2rtf commands. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page for rtf2rtf. rtf2rtf is a program to postprocess the raw RTF generated by the mapping files. It is used by other programs in sgml-tools (v1), and usually normal user does not need to use this program directly. Following is quoted from the README in the source tree. (Begin Quotes) I'm not proud of this code. It's a hack foisted upon a hack, nested within another hack or two. It sort of works well enough for my pur- poses (generating WinHelp .RTF files for my documents), but it could definitely use a redesign/rewrite. It started as a simple pertubation of the html2html filter, but got ugly very quickly... I shamelessly blame the RTF format for most of the hackery here -- RTF is not a _language_ like LaTeX or ROFF -- it's just a file format. So, we can't rely on RTF to do even simple things like "insert a paragraph break here only if the previous token was not also a paragraph break. Since the SGML front end has no conditional processing capabilities, multiple blank likes in the SGML get translated to multiple para breaks in the RTF. That's why we use a "lex" filter (rtf2rtf) to postprocess the raw RTF generated by the mapping files. Again: I offer this to the Linuxdoc community with the hopes that it will be useful to others and that someone else can help flesh out the missing pieces. What? Missing pieces? Yes, recall that I say it works "well enough for my purposes". The replacement files (general, map- ping) started out like as the latex replacement files. Much of them still _are_ the latex replacement files. I only converted those parts that are actually used by my documents. Your documents may require more of the files to be translated to RTF. Since I'm using these mappings for actual documentation, I plan on maintaining this backend, so please send me any improvements -- I'll coordinate with Greg to make sure they get into the the next official release. (End Quotes) OPTIONS
The programs does not support normal command line option. SEE ALSO
For a complete description, see the README file in the source archive. AUTHOR
rtf2rtf was written by Steve Tynor (tynor@atlanta.twr.com) December 1995. This manual page was written by Taketoshi Sano <sano@debian.org>, for the Debian GNU/Linux system (but may be used by others). RTF2RTF(1)
All times are GMT -4. The time now is 03:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy