Sponsored Content
Full Discussion: awk or nawk in ksh
Top Forums Shell Programming and Scripting awk or nawk in ksh Post 302533662 by neutronscott on Friday 24th of June 2011 10:53:20 AM
Old 06-24-2011
Should do it

Code:
}' $filelist >> $OUTPUT

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help with Awk or nawk

Can anyone explain to me why the first line doesn't work and the second seems to work fine. I am trying to find all occurances of text within a certain column (col 13) that start with the character V, I suppose it sounds simple but I have tried using the following but don't really understand what... (2 Replies)
Discussion started by: Gerry405
2 Replies

2. Shell Programming and Scripting

nawk -v to awk

hi, i have the command nawk -v i want to use it equivalent in awk? any help please :) (2 Replies)
Discussion started by: kamel.seg
2 Replies

3. Shell Programming and Scripting

nawk/ksh help

Hello, First of all, I am trying to duplicate the sum command using ksh/nawk Lets assume the following algorithms work just fine and there is no calculation errors what so ever (which I doubt at this minute). For now, I wanna make sure the script uses the BSD algorithim if -r is used... (0 Replies)
Discussion started by: DeltaX
0 Replies

4. UNIX for Dummies Questions & Answers

How to use awk instead of nawk?

Hi all, I can run the following script using nawk..However, I find that teh server dun support nawk.. May I know how to change teh script to use awk such that it will work? Very urgent.. thx! nawk 'BEGIN {FS=OFS=","} NR==FNR{arr=$2;next} $0 !~ "Documentation"{print $0;next} ... (2 Replies)
Discussion started by: kinmak
2 Replies

5. 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

6. UNIX for Dummies Questions & Answers

Arrays in nawk and ksh

I'm not confident at all on how arrays work. I want to know how to set arrays in ksh and in nawk (is there a difference??) if someone can show me some examples of both that will be great. Tried to look up on the net but was confusing me more. Any help would be appreciated. (2 Replies)
Discussion started by: Pablo_beezo
2 Replies

7. UNIX for Dummies Questions & Answers

Help me to know about awk and nawk

Hi everyone, i am new to unix , so i want to know what is the use of awk and nawk. because in most of the place this cmds were used. so, if anyone provied the basic idea of this cmds, it will be much helpfull for me . . .. Thnks in Advance :) (9 Replies)
Discussion started by: natraj005
9 Replies

8. Shell Programming and Scripting

ksh/nawk help with if statement to choose between 2 files

Hi! I am having a bit of a problem with my script. There are two different date formats that may appear in a file, either Jul-12 or Jul--6. I tried to create an if statement that searches for one of the formats and if that doesn't exist searches for the other, however it doesn't seem to be... (3 Replies)
Discussion started by: ther2000
3 Replies

9. Shell Programming and Scripting

Awk,nawk Help please

Hi Guys, I am in need of some help; I have an xml message file which contains personal details as shown below: , message=, message=, message=, message=, message=, message= I want to use nawk to parse these xml messages but I am new to awk and nawk. What I want is to get output... (7 Replies)
Discussion started by: James_Owen
7 Replies
AVINFO(1)							   User Commands							 AVINFO(1)

NAME
AVInfo - Audio/Video file information automatic extractor SYNOPSIS
avinfo [FILENAME] [OPTIONS] [TEMPLATE] [OUTPUT] avinfo [-l=FILELIST] [OPTIONS] [TEMPLATE] [OUTPUT] avinfo -l- [OPTIONS] [TEMPLATE] [OUTPUT] avinfo [--help | --version] DESCRIPTION
Extracts information from FILENAME or files in FILELIST and generates a report. OPTIONS: -f=extension forces the use of module associated with extension -l=list use filelist (use -l- for stdin) -i=ms delay between files in filelist (in ms) (/*TODO*/) -e=ext exclude an extension (do not apply associated module) -m=number max line length (0 - no restriction) -s=value for advanced tuning of modules (/*TODO*/) -v=name=value set int. variable 'name' to 'value' (text or number) External TEMPLATEs: -th=template header template (string, use without value to disable) -thf=filename get header template from a file -tb=template body template (string, use without value to disable) -tbf=filename get body template from a file -tf=template footer template (string, use without value to disable) -tff=filename get footer template from a file Built-in TEMPLATEs: --default used by default --description for creating (updating) descrpipt.ion files --list for filelist (plain text) generation --html-list for filelist (html) generation --csv-list for filelist (CSV, e.g. for Excel) --short alt. version of --default template --far "nice" formated report (for FAR Manager) (contains MS-DOS pseudographic characters) OUTPUT: -o=file file to write the report to (default is stdout) Other OPTIONS: --help prints this help page --version prints avinfo version and copyright You can use ':' instead of '=' in all OPTIONS or just omit it. TEMPLATEs use AVInfo Simple Script (A.S.S.) syntax. Examples of commands: avinfo file.ogm --raw find . -name '*.avi' -print | avinfo -l- --html-list -o=avilist.html avinfo -l:list -thf:header -tbf=body -tff=footer >report SEE ALSO
Additional documentation for AVInfo can be found in the package documentation directory. (c) George Shuklin, 2001-2004, http://shounen.ru/soft/avinfo/ This is free software. You are welcome to redistribute it under the terms and conditions of GNU General Public License. AVInfo 1.0 alpha 15 [Balalaika] April 2005 AVINFO(1)
All times are GMT -4. The time now is 07:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy