06-01-2007
i don't have SunOS for testing. you can try using nawk.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I get the record count in an EBCDIC file on a Linux Box. :confused: (1 Reply)
Discussion started by: oracle8
1 Replies
2. Programming
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)
Discussion started by: shafi2all
6 Replies
3. Shell Programming and Scripting
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)
Discussion started by: singhabhijit
4 Replies
4. Shell Programming and Scripting
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)
Discussion started by: vmsenthil
3 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: cavanac2
8 Replies
6. Shell Programming and Scripting
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)
Discussion started by: mlpathir
3 Replies
7. Shell Programming and Scripting
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)
Discussion started by: Sriranga
5 Replies
8. Shell Programming and Scripting
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)
Discussion started by: Pratik4891
11 Replies
9. Shell Programming and Scripting
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)
Discussion started by: rohit_shinez
13 Replies
10. Shell Programming and Scripting
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
quickplot_shell
QUICKPLOT_SHELL(1) General Commands Manual QUICKPLOT_SHELL(1)
NAME
quickplot_shell - a remote command line shell for quickplot
SYNOPSIS
Usage: quickplot_shell [PID]|[-h|--help]|[QUICKPLOT_OPTIONS]
DESCRIPTION
Quickplot is an interactive 2D plotter. It's primary focus is to interactively display 2D plots. quickplot_shell connects to a running
Quickplot program. quickplot_shell provides a command line interface for most of the graphical user interfaces that are in the Quickplot
program. quickplot_shell reads and writes to standard input and standard output respectively. When standard input is a tty device quick-
plot_shell enables readline tab completion and history. If you would like to save your Quickplot shell history between sessions just cre-
ate a .quickplot_history in your home directory with a command like `touch ~/.quickplot_history'.
If the argument option PID is not given, quickplot_shell will launch Quickplot as a new process and connect to that new process. In this
case Quickplot will be started with QUICKPLOT_OPTIONS if any are given.
If PID is given, quickplot_shell will connect to a running Quickplot program with process ID PID.
quickplot_shell sets up two named pipes, signals the running Quickplot program and writes commands and reads responses to and from the
pipe. The named pipes will be unlinked as soon as they are connected, and hence will be removed automatically when the two programs are no
longer running.
quickplot_shell, the remote Quickplot shell, acts just like running quickplot --shell, a local Quickplot shell, but quickplot_shell runs as
a separate process and talks to the Quickplot program using pipes, where as quickplot --shell runs one process with both the GUI and the
shell with no pipes. You may connect as number of remote Quickplot shells to a Quickplot program.
-h, --help
display help and exit
SEE ALSO
quickplot(1)
COPYRIGHT
Copyright (C) 1998-2011 Lance Arsenault
Quickplot is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Quickplot is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Quickplot. If not, see <http://www.gnu.org/licenses/>.
AUTHOR
Lance Arsenault <lanceman@users.sourceforge.net>
Send bug reports or comments to the above address.
For more information, see the Quickplot homepage at
<http://quickplot.sourceforge.net/>.
Quickplot Version 0.10.3: 31 Jan 2012 03:27:29 UTC QUICKPLOT_SHELL(1)