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
MAKEPERCENTRELAY(8)					      Double Precision, Inc.					       MAKEPERCENTRELAY(8)

NAME
makepercentrelay - Build a list of %-relayed domains SYNOPSIS
makepercentrelay DESCRIPTION
makepercentrelay reads /etc/courier/esmtppercentrelay.dir and creates /etc/courier/esmtppercentrelay.dat which is a binary database file. The files /etc/courier/esmtppercentrelay and /etc/courier/esmtppercentrelay.dat specify a list of "percent-hack" domains. /etc/courier/esmtppercentrelay is a plain text file, containing one domain per line. The Courier mail server loads the contents of /etc/courier/esmtppercentrelay into memory, so if you have a lot of domains, you will want to use the binary database file. The makepercentrelay command reads /etc/courier/esmtppercentrelay.dir, which can be either a plain text file itself, or a directory containing plain text files. All files in the subdirectory are concatenated, and the binary database file is created from the result. the Courier mail server can use both /etc/courier/esmtppercentrelay and /etc/courier/esmtppercentrelay.dat at the same time. Usually you would put a couple of your most frequent domains in /etc/courier/esmtppercentrelay, then put the rest in /etc/courier/esmtppercentrelay.dir, and use makepercentrelay to turn it into a database file. "percent-hack" domains are a list of domains for which the Courier mail server accepts mail via ESMTP addressed as "local%percent.hack.domain@local.domain", where "percent.hack.domain" is a domain found in /etc/courier/esmtppercentrelay or /etc/courier/esmtppercentrelay.dat, and "local.domain" is any domain found in /etc/courier/locals. The Courier mail server removes the local domain, and rewrites the address as "local@percent.hack.domain", then attempts to deliver it. The percent hack applies only to mail received via ESMTP. The Courier mail server does not check this list of domains if the message is received via any other way (such as by running /usr/bin/sendmail directly from the command line). "percent.hack.domain" would likely to be a domain that the Courier mail server knows how to handle via some other means. It might be an entry in /etc/courier/aliases, or an entry in /etc/courier/esmtproutes. SEE ALSO
esmtpd(8)[1], makealiases(8)[2]. AUTHOR
Sam Varshavchik Author NOTES
1. esmtpd(8) [set $man.base.url.for.relative.links]/esmtpd.html 2. makealiases(8) [set $man.base.url.for.relative.links]/makealiases.html Courier Mail Server 08/30/2011 MAKEPERCENTRELAY(8)
All times are GMT -4. The time now is 01:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy