> cd /space/dwland/shell_prg_test/Trans/
> awk -F "|" '{print NF-1}' Daily_Feed_051507.txt > newfile
awk: syntax error near line 1
awk: bailing out near line 1
>
It is giving syntax error...I'm using Sun OS 5.10...Am i doing something wrong here...Could you please tell,the way to run the command....
Before i start doing something, I wanted to know whether the approach to compare XML file with UNIX file system structure. I have a pre-configured file(contains a list of paths to executables) and i need to check against the UNIX directory structure. what are the various approches should i use ? I... (6 Replies)
Hi all this is a UNIX question.
I have a large flat file with millions of records.
col1|col2|col3
1|a|b
2|c|d
3|e|f
3|g|h
footer****
I am supposed to calculate the sum of col1 1+2+3+3=9, count of col1 1,2,3,3=4, and distinct count of col1 1,2,3=c3
I would like it if you avoid... (4 Replies)
I have a text file with a huge dataset, and each row in that dataset has some data(65479 rows). In that file I need to find the number of times a-z & A-Z Appears.
How Can I Initialise Array into an Array to parse the count also I need to parse a,A into a single array preferably.
example of... (3 Replies)
Hi
I am having a 'grep' headache
Here is the contents of my file:
(PBZ,CP,(((ME,PBZ,BtM),ON),((ME,((PBZ,DG),(CW9,PG11))),CW9,TS2,RT1)))
I would like to count out how many times 'PBZ' occurs and then place that number in the line above
3... (8 Replies)
Need to develop a unix shell script for the below requirement and I need your assistance:
1) search for file.log and file.bad file in a directory and read them
2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file
4) concatinate each row from bad file as... (3 Replies)
Hi,
I have a pipe delimited txt file which contains 17 fields per line/row.
16th field contains email id. I want to count the number of lines/rows that contains null in the 16th field.
Plz find attached example data file.
I'm looking for a command line/script which achieves this.
... (5 Replies)
Hello Guys
I have a flat file with '|~|' delimited
When I use to record count using below command
awk -FS"+" ' {print $colno}' filename | wc -l
the count is fine
But when I am trying to find the unique number of record the o/p is always 1
awk -FS"+" ' {print $colno}'... (11 Replies)
Hi guys,
I need to know how i can ignore Pipe '|' if Pipe is coming as a column in Pipe delimited file
for eg:
file 1:
xx|yy|"xyz|zzz"|zzz|12...
using below awk command
awk 'BEGIN {FS=OFS="|" } print $3
i would get xyz
But i want as :
xyz|zzz to consider as whole column... (13 Replies)
Hi All,
I am writing a shell script to extract oracle table into a pipe dilemited flat file. Below is my code and I have attached two files that I have abled to generate so far.
1. Table.txt ==> database extract file
2. flat.txt ==> pipe delimited after some manipulation of the original db... (5 Replies)
Discussion started by: express14
5 Replies
LEARN ABOUT DEBIAN
vodovod
vodovod(6) Games vodovod(6)NAME
vodovod - lead the water from the house to the storage tank
SYNOPSIS
vodovod
DESCRIPTION
Vodovod is a free game, released under GNU GPL license. Graphics and programming are done by Milan Babuskov. This is an over-weekend
project for now, so don't expect miracles. However, game is completely playable.
The goal of the game is to reach the highest possible score. You get a limited number of pipes on each level and need to combine them to
lead the water from the house at the top of the screen to the storage tank at the bottom. For each pipe water goes through, you get 20
points and if you fill the cross-pipe both ways, you get 60 points. At end of each level, you are awarded depending on the skill level:
* Beginner: 100 points
* Toolman: 100 points + number of pipes remaining
* Master plumber: 100 points + 2 x number of pipes remaining
Some of the levels have obstacles where you cannot place pipes, checkpoints through which the water must go and holes in the ground that
slow the flow. Select HELP from the main menu to get more info. The game is playable with joystick/joypad: just move it and press buttons
when you go to Options -> Configure controls
USAGE
The goal of the game is to use pipes to connect the house at the top of the screen with the tank at the bottom. You have time to construct
the initial pipeline before the man enters the house.
For each level you get a limited number of pipes, so use them wisely. If you make a mistake, you can place another pipe over it.
There are certain special blocks in the map:
* Blocked Area - You cannot place pipes on these fields.
* Checkpoint - Your pipeline must go through this field.
* Hole in the ground - Slows down the flow.
SEE ALSO
You can find more information at http://home.gna.org/vodovod/
May 2007 vodovod(6)