06-21-2013
Post what you've tried so we can comment on or correct it, respectively.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need a hand with this simple script,
in Unix i have a variable called portal:
$ echo $portal
chu0
when i use awk this variable is not recognized. How can i make awk recognize and print the value of this variable, since the output is not shown i.e.
awk '
BEGIN {printf("%4s\t%14s\n",... (3 Replies)
Discussion started by: alexcol
3 Replies
2. Shell Programming and Scripting
when I execute this awk stmt ..
awk "/log_directory/ { print $5}" /opt/dba/oraadmin/tools/tmp_purge_op.log
it's returning the whole line as ..
IRMD118_LISTENER1 parameter "log_directory" set to /opt/oracle/10.2/network/log/
my expected output is : /opt/oracle/10.2/network/log
what... (7 Replies)
Discussion started by: talashil
7 Replies
3. Shell Programming and Scripting
Whats the syntax to find all lines that matches a text and print out specific fields after the match?
ex:
1: some random text
2: Full name: John E. Smith
3: some random text
4: Full name: Mary J. Lue
5: some random text
So I'd like to print out First names or last names or everything... (2 Replies)
Discussion started by: linuxdude
2 Replies
4. Shell Programming and Scripting
Hi,
I just don't understand awk. I think I'm close here but can someone give me a hand to finish this little parsing routine ?
the input file is formatted like this:
District 2502110
Gsub 2384889
Gsub 1428180
District 2502220
Gsub 1466390
Gsub 1466389
Gsub 1466388
Gsub 1466386
Gsub... (4 Replies)
Discussion started by: fwellers
4 Replies
5. UNIX for Dummies Questions & Answers
awk '!_++'
Most importantly, I want to know what the underscore does "!_"
But ideally, please breakdown the whole thing. It is supposed to remove duplicate lines when found in a file. (1 Reply)
Discussion started by: glev2005
1 Replies
6. Shell Programming and Scripting
Hello;
Trying to figure out how to keep just the contents between the two search lines:
awk '/regexp_1/ ,/regexp_2/'
I do not want lines containing regexp_1 and regexp_2 in the output.
Thank you for any ideas
Video tutorial on how to use code tags in The UNIX and Linux Forums. (5 Replies)
Discussion started by: delphys
5 Replies
7. Shell Programming and Scripting
Hello;
I need to print two previous lines after searching for a reg exp:
awk '/haywood/'
should produce the following
===================
p9J46THe020804 89922 Tue Oct 18 21:06 MAILER-DAEMON
(host map: lookup (haywood.com): deferred)
... (1 Reply)
Discussion started by: delphys
1 Replies
8. Shell Programming and Scripting
Hi,
I'm new to AWK and I'm having problems comparing a field to a string variable.
/ARTIST/ {x = $2}
$1 ~ x {print $0}My code tries to find a record with the string "ARTIST". Once it finds it, it stores the second field of the record into a variable. I don't know what the problem is for the... (7 Replies)
Discussion started by: klusps
7 Replies
9. Shell Programming and Scripting
Hi,
I have a file such that:
40454,31,48,4,1304.967741935484,1
31708,25,48,4,1268.32,1
20900,64501,671,788,0.3240259840932699,0
20137,51358,834,743,0.3920908135051988,0
I want to replace the 6th column by "ones" if it is 1, and with "zeros" if it is 0.
Thanks. (6 Replies)
Discussion started by: shekhar2010us
6 Replies
10. Shell Programming and Scripting
Hi, this must be a simple but this is my first interaction with shell and awk.
following is a log file needed to parse (2 lines separated by a line break for clarity):
2013-07-27 13:32:09,043 - ERROR - PerformanceUtility - Thread-14 - Performance - 9b348407-4f57-4983-a057-a55669821f68 |... (12 Replies)
Discussion started by: liv2luv
12 Replies
FLAME(1) General Commands Manual FLAME(1)
NAME
flame -- reply to Usenet News posting automatically
SYNOPSIS
flame [options] [filename]
DESCRIPTION
Flame is a AI tool providing an automated method for replying to articles posted to Usenet News. Special care is paid to allow the user to
specify the type of reply he desires. The following options are supported by flame:
-- Take input from stdin.
-x regexp
Crosspost to all newsgroups matching regexp.
-n number
Post this reply number times.
-b Reply in BIFF MODE.
-d Delay response until original posting expires.
-m Misdirect to a random Author.
-r ROT13 quotes from original posting.
-g regexp
Reply to all messages in newsgroups matching regexp.
-A Call the Author Assh*le in 12 languages.
-B Bait the Author.
-C Accuse the Author of communist leanings.
-D Denigrate the Author.
-E Picks apart the Author's educational background.
-F Accuse the Author of fascist leanings.
-G Post using Greek insult module.
-H Accuse the Author of homophobic leanings.
-I Question the Author's intelligence.
-J Accuse the Author of purchasing Japanese imports.
-K Accuse the Author of working for the KGB, MOSSAD, CIA, or MI5 as appropriate.
-L Post using Latin insult module.
-M Insult the Author's mother.
-N Accuse the Author of Neo-Nazi leanings.
-O Quote obscure references proving falsehood of the posting.
-P Question the Author's parentage.
-Q Accuse the Author of deviant sexual practices.
-R Accuse the Author of racist leaning.
-S Accuse the Author of sexist leanings.
-T Accuse the Author of cross dressing.
-U State that the Author just doesn't understand anything.
-V Pretend sympathy for Author's virgin sensibilities.
-W Accuse the Author of voting for George Bush.
-X Prepend obscene adjectives wherever syntactically correct.
-Y Accuse the Author of PLO membership.
-Z Accuse the Author of Zionist leanings.
ENVIRONMENT
The environment variable FLAME_TYPE can be set to any combination of the above parameters, and will be used as the default flame type to
generate.
The environment variable OBSCENE points to a file containing miscellaneous obscene adjectives for the -X option above.
MACROS
Macro Support will be added to the next release of flame.
AUTHOR
Unknown
FILES
.lastflame
This file contains the number of the last article flamed. Used when flameing an entire newsgroup.
.prefflame
This file contains the user's preferred flames.
.altflame
This file contains alternate phrasing of some of the more standard flames. Used to keep the program from flaming itself.
SEE ALSO
rn(1), more(1), newsrc(5), readnews(1), Pnews(1), Rnmail(1)
DIAGNOSTICS
Self Documenting.
BUGS
Occasionally, flame will turn on the user, and flame all outgoing postings. When this happens, the best thing to do reinstall your news
software and flame.
FLAME(1)