10-09-2007
I knw that. I myself have used "|" as delimiter. My problem here is to use 2 delimiters in order to get desired output file.
I need outputfile from inputfile by some trick.
Thanks for replying.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hey all,
Can I put sed command inside the awk action ?? If not then can i do grep in the awk action ??
For ex:
awk '$1=="174" { ppid=($2) ; sed -n '/$ppid/p' tempfind.txt ; }' tempfind.txt
Assume: 174 is string.
Assume: tempfind.txt is used for awk and sed both.
tempfind.txt... (11 Replies)
Discussion started by: varungupta
11 Replies
2. Shell Programming and Scripting
Hello - is there any way in awk I can do...
4861 x(1) y(1) z(1)
4959 x(1) y(1) z(1)
5007 x(1) y(1) z(1)
4861 x(2) y(2) z(2)
4959 x(2) y(2) z(2)
5007 x(2) y(2) z(2)
4861 x(3) y(3) z(3)
4959 x(3) y(3) z(3)
5007 x(3) y(3) z(3)
to become...
4861 x(1) y(1) z(1) 4861 x(2) y(2) z(2)... (3 Replies)
Discussion started by: catwoman
3 Replies
3. Shell Programming and Scripting
Hi Friends.
Please have a look at dummy file. I need to extract from this file:
1. Counts of event=
2. the 2nd coulmn is unique call id of this transaction. Based on that, i have to search for txstatus= .
Note: Values of event, calltype and txstatus can be anything.
I want to print... (1 Reply)
Discussion started by: itsmesanju
1 Replies
4. Shell Programming and Scripting
Hello all,
I am writing up an input file and I was hoping I could get some guidance as to how to best consolidate these 2 awk statements for 1 while loop.
Here's my input file
# cat databases.lst
#NOTE: These entries are delimited by tabs "\t"
#oracleSID name/pass
#
db11 ... (2 Replies)
Discussion started by: Keepcase
2 Replies
5. Shell Programming and Scripting
please let me know if the below code could be written efficiently inside single awk
case "$INP" in
ksh)
cat catalog | awk 'BEGIN {FS=",";} { print $2 } END {}'
;;
pset)
cat catalog | awk 'BEGIN {FS=",";} { print $3 } END {}'
;;
dml)
cat catalog | awk 'BEGIN {FS=",";} {... (2 Replies)
Discussion started by: cvsanthosh
2 Replies
6. Shell Programming and Scripting
Folks - newbie bash coder here and I'd like to get your help to make the code below work. As you can see, I was trying to count the total number of lines with the 3rd value >= 15 in a file and wanted to make the threshold "15" configurable, but apparently the $THRESHOLD value was not populated... (3 Replies)
Discussion started by: bashzipper
3 Replies
7. Shell Programming and Scripting
Hello again everyone,
yes, I'm back again for more help! So I'm attempting to read two separate files and generate some XML code from that. My current code is:
BEGIN {
print "<?xml version=\"1.0\" encoding=\"utf-8\">"
print "<Export>"
}
{
x=1;
print "<section name=\"Query" NR "\">"... (5 Replies)
Discussion started by: Parrakarry
5 Replies
8. Shell Programming and Scripting
Hi Gurus,
I have a command to assign value based on input value.
current condition is "if pattern matches "case", then assign "HOLD" else "SUCC"right now, I need to add one more condition (variable name is VAR).
the condition is "if pattern1 matches "case", then assign "HOLD" else if... (2 Replies)
Discussion started by: ken6503
2 Replies
9. Shell Programming and Scripting
I am trying to parse a text file and send its output to another file but I am having trouble conceptualizing how I am supposed to do this in awk.
The text file has a organization like so:
Name
Date
Status
Location (city, state, zip fields)
Where each of these is on a separate line in... (1 Reply)
Discussion started by: kellyanneghj
1 Replies
10. Shell Programming and Scripting
Hello.
I would like to convert the following piece of code from bash to awk.
Here are bash variables in a bash script.
CUR_ROW_ID and ROW_ID_TO_SEARCH contains a string which represent a row id.
The string contain a valid row id.
CUR_ROW_ID sometimes may be null.
CUR_VALUE... (3 Replies)
Discussion started by: jcdole
3 Replies
Ac3d Compiler(6) Games Ac3d Compiler(6)
NAME
accc - Ac3d Compiler
SYNTAX
accc [option] <inputfile> <outputfile> [dist][-order orderstring]
DESCRIPTION
This manual describes the Ac3d compiler application that is shipped with the game TORCS.
OPTIONS
-strip stripify any ac3d output models
+o ac3d to ac3d: the result file is optimized in using groups by zone of track track must be named TKMNxxx dist is used to determine
the distance of the objects
+om ac3d to ac3d: the result is a vertex merged unique obj for smooth car only
-o ac3d to obj +s ac3d to ac3d with strips (used for cars)
+es <angle_of_smooth>
ac3d to ac3d with strips (used for cars) and extended ac3d file output (computed normals) angle is in degrees: example: +es 80.0
clkdtm_o.ac clkdtm.ac the output file will also contains the secondary textcoord for the env sliding
+et ac3d to ac3d with triangles (used for cars) and extended ac3d file output (normals normals)
+etn ac3d to ac3d with triangles no split and extended ac3d file output (normals normals)
+shad ac3d to ac3d with triangles, create a new ac3d file used for track shading vertical mapping of a single texture
<inputfile>
<outputfile>
-order orderstring
only used with +es , +s and +et orderstring is the order of the objects during the save for example: HB;OB;OBM is the names of the
objet separate by a semicolon for imported NFS cars the object name HB must be used instead of: HB
-g <outputfile>
for grouping multilayer ac3d track
-l0 <input filename>
the base geometry
-l1 <input filename>
the base geometry map-tiled
-l2 <input filename>
the base geometry skids/and grass details
-l3 <input filename>
the base geometry shadows
-d3 <val>
the max distance of groups in tkmn
-d2 <val>
the distance of group 2 in tkmn
-d1 <val>
the distance of group 1 in tkmn
-S <val>
the distance of splitting for TERRAIN* objects
-es for extended ac3d file format for strips
-nts no texture split (for debug)
SEE ALSO
torcs(6)
AUTHOR
This manual page was writen by Rudy Godoy <rudy@stone-head.org>, for the Debian GNU/Linux system (but may be used by others).
Rudy Godoy 1.4 Ac3d Compiler(6)