Sponsored Content
Full Discussion: nawk issue
Top Forums Shell Programming and Scripting nawk issue Post 302604927 by binlib on Tuesday 6th of March 2012 10:05:38 AM
Old 03-06-2012
Removed, Alister explained much better.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

nawk

Hi, I had this syntax and no matter what I do, I can't get it run. err message: run6: syntax error at line 121 : `(' unexpected I went to line 121 and it's comment out! All the variables passed to nawk are valid. There are two places I suspect have the problem: 1.... (3 Replies)
Discussion started by: whatisthis
3 Replies

2. UNIX for Advanced & Expert Users

nawk use

I found a command who prints x lines before and after a line who contain a searched string in a text file. The command is : ------------------- nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r;print;c=a}b{r=$0}' b=2 a=4 s="string" file1 ...where "b" and "a" are the number of lines to print... (2 Replies)
Discussion started by: ctap
2 Replies

3. Shell Programming and Scripting

how to access values of awk/nawk variables outside the awk/nawk block?

i'm new to shell scripting and have a problem please help me in the script i have a nawk block which has a variable count nawk{ . . . count=count+1 print count } now i want to access the value of the count variable outside the awk block,like.. s=`expr count / m` (m is... (5 Replies)
Discussion started by: saniya
5 Replies

4. Shell Programming and Scripting

grep / nawk issue

I have a report which contains the following: Count Value % 47 69.12 18 26.47 3 4.41 I want to grep the total on the bottom brackets and store in a variable. However this may have a different figure everyday. To read the i do: ... (1 Reply)
Discussion started by: Pablo_beezo
1 Replies

5. Shell Programming and Scripting

Nesting - two nawk into one nawk

hi people; this is my two awk code: nawk '/cell+-/{r=(NF==8) ? $4FS$5FS$6 : NF==7 ? $4FS$5 : $4 ;c=split(r,rr);for (i=1;i<=c;i++){if(rr != "111111"){printf($3" %d ""\n",(i+3))}}printf("")}' /home/gc_sw/str.txt > /home/gc_sw/predwn.txt nawk -F'*' '{gsub(/ *$/,"")}$0=$1$($NF-2)'... (2 Replies)
Discussion started by: gc_sw
2 Replies

6. UNIX for Dummies Questions & Answers

Nawk help!!!

Hi, Please help me I want to filter all messages having a value less than a particular value..Please advice how to use <= in the below red marked script.. Getting the error as no such file or directory for the marked line no. Thanks in advance... Script is as under : read message gawk... (5 Replies)
Discussion started by: vanand420
5 Replies

7. Shell Programming and Scripting

issue with toupper in nawk

Hi All, I am seeing an issue while using toupper in nawk. Below is the code that I am using.Toupper method is not working as expected in this case.nawk 'NR==FNR{a=$4" "$5}NR>FNR{print NF?$0:a"\n";if(/^cn:/) x=toupper($0)}' FS="" id_list.txt attributes.txt > out In the above script, id_list... (9 Replies)
Discussion started by: Samingla
9 Replies

8. Shell Programming and Scripting

issue with nawk while using variable assignment

#ifconfig -a | nawk '/1.1.1.1/{print}' inet 1.1.1.1 netmask xxxxxxxxx broadcast 0.0.0.0 If i assign the ip to a variable and search for the variable nothing gets printed!! # ifconfig -a | nawk -v ip=1.1.1.1 '/ip/{print}' I am not able to understand why this is happening! (6 Replies)
Discussion started by: chidori
6 Replies

9. Shell Programming and Scripting

Substitution Issue with nawk

Hi, I'm trying to reformat some badly formatted XML that I've extracted from Oracle clob columns using the following nawk command: nawk '{gsub(/&lt;/,/>\n/); print}' test.raw > test.xml the substitution executes fine, but instead of subbing &lt; with > followed by newline, it subs the &lt; with a... (3 Replies)
Discussion started by: sffuji
3 Replies

10. Shell Programming and Scripting

Nawk Problem - nawk out of space in tostring on

Hi.. i am running nawk scripts on solaris system to get records of file1 not in file2 and find duplicate records in a while with the following scripts -compare nawk 'NR==FNR{a++;next;} !a {print"line"FNR $0}' file1 file2duplicate - nawk '{a++}END{for(i in a){if(a-1)print i,a}}' file1in the middle... (12 Replies)
Discussion started by: Abhiraj Singh
12 Replies
PERLEXPERIMENT(1)					 Perl Programmers Reference Guide					 PERLEXPERIMENT(1)

NAME
perlexperiment - A listing of experimental features in Perl DESCRIPTION
This document lists the current and past experimental features in the perl core. Although all of these are documented with their appropriate topics, this succinct listing gives you an overview and basic facts about their status. So far I've merely tried to find and list the experimental features and infer their inception, versions, etc. There's a lot of speculation here. Current experiments fork() emulation Introduced in Perl 5.6.1 See also perlfork Weak references Introduced in Perl 5.6.0 Internal file glob Introduced in Perl 5.6.0 Accepted in XXX 64-bit support Introduced in Perl 5.005 Accepted in XXX die accepts a reference Introduced in Perl 5.005 Accepted in Perl XXX Unicode support Introduced in Perl 5.6.0 Accepted in Perl 5.8.0 XXX -Dusemultiplicity -Dusethreads Introduced in Perl 5.6.0 Long Doubles Still Don't Work In Solaris Introduced in Perl 5.7.0 GetOpt::Long Options can now take multiple values at once (experimental) "Getopt::Long" upgraded to version 2.35 Removed in Perl 5.8.8 5.005-style threading Introduced in Perl 5.005 Removed in Perl 5.10 XXX Test::Harness::Straps Removed in Perl 5.10.1 perlcc Introduced in Perl 5.005 Removed in Perl 5.9.0 "our" can now have an experimental optional attribute "unique" Introduced in Perl 5.8.0 Deprecated in Perl 5.10.0 Assertions The "-A" command line switch Introduced in Perl 5.9.0 Removed in Perl 5.9.5 Linux abstract Unix domain sockets Introduced in Perl 5.9.2 See also Socket Pod::HTML2Pod Pod::PXML threads The <:pop> IO pseudolayer See also perlrun The <:win32> IO pseudolayer See also perlrun MLDBM See also perldsc internal functions with M flag See also perlguts lex_start API Introduced in Perl 5.13.7 internal API for %H Introduced in Perl 5.13.7 See also "cophh_" in perlapi. av_create_and_push av_create_and_unshift_one av_create_and_unshift_one PL_keyword_plugin hv_iternext_flags lex_bufutf8 lex_discard_to lex_grow_linestr lex_next_chunk lex_peek_unichar lex_read_space lex_read_to lex_read_unichar lex_stuff_pv lex_stuff_pvn lex_stuff_pvs lex_stuff_sv lex_unstuff parse_fullstmt parse_stmtseq PL_parser->bufend PL_parser->bufptr PL_parser->linestart PL_parser->linestr Perl_signbit pad_findmy sv_utf8_decode sv_utf8_downgrade bytes_from_utf8 bytes_to_utf8 utf8_to_bytes DB module Introduced in Perl 5.6.0 See also perldebug, perldebtut The pseudo-hash data type Introduced in Perl 5.6.0 Lvalue subroutines Introduced in Perl 5.6.0 See also perlsub There is an "installhtml" target in the Makefile. Unicode in Perl on EBCDIC "(?{code})" See also perlre "(??{ code })" See also perlre Backtracking control verbs "(*ACCEPT)" Introduced in: Perl 5.10 See also: "Special Backtracking Control Verbs" in perlre Code expressions, conditional expressions, and independent expressions in regexes The "N" regex character class The "N" character class, not to be confused with the named character sequence "N{NAME}", denotes any non-newline character in a regular expression. Introduced in: Perl 5.12 See also: gv_try_downgrade See also perlintern Experimental Support for Sun Studio Compilers for Linux OS See also perllinux Pluggable keywords See "PL_keyword_plugin" in perlapi for the mechanism. Introduced in: Perl 5.11.2 Accepted features These features were so wildly successful and played so well with others that we decided to remove their experimental status and admit them as full, stable features in the world of Perl, lavishing all the benefits and luxuries thereof. They are also awarded +5 Stability and +3 Charisma. (none yet identified) Removed features These features are no longer considered experimental and their functionality has disappeared. It's your own fault if you wrote production programs using these features after we explicitly told you not to (see perlpolicy). "legacy" The experimental "legacy" pragma was swallowed by the "feature" pragma. Introduced in: 5.11.2 Removed in: 5.11.3 AUTHORS
brian d foy "<brian.d.foy@gmail.com>" COPYRIGHT
Copyright 2010, brian d foy "<brian.d.foy@gmail.com>" LICENSE
You can use and redistribute this document under the same terms as Perl itself. perl v5.16.3 2013-03-04 PERLEXPERIMENT(1)
All times are GMT -4. The time now is 05:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy