05-07-2015
On your shell's command line, set -x to enable the xtrace option, run your above command again (which will output the expanded command lines) and post the entire output here.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a script which creates and modifies a csv file.
I have managed to do everything I need to do apart from 1 thing. I need to append a trailer record to the file. I need this line to hold the total of an entire column of the csv file (skipping the 1st line which is a header).
Can... (2 Replies)
Discussion started by: mcclunyboy
2 Replies
2. Solaris
SunOS 5.10 Generic_142900-15 sun4v sparc SUNW,T5240
I have a script that needs to test a file for the existence of a trailer record. Is there a command and is a header and trailer differect record type?
Thanks in advance (1 Reply)
Discussion started by: Harleyrci
1 Replies
3. Shell Programming and Scripting
Hi,
How to add trailer record at the end of the flat file in the unix ksh shell scripting
can you please let me know the procedure
Regards
Srikanth (3 Replies)
Discussion started by: srikanth_sagi
3 Replies
4. Shell Programming and Scripting
Hi! all
can any one tell me how to compare current record of column with next and previous record in awk without using array
my case is like this
input.txt
0 32
1 26
2 27
3 34
4 26
5 25
6 24
9 23
0 32
1 28
2 15
3 26
4 24 (7 Replies)
Discussion started by: Dona Clara
7 Replies
5. Shell Programming and Scripting
I am trying to omit the trailer record in a variable width file
I tried using awk 'NR >1 { print prev } { prev = $0 }' filename
The above command is giving output but somehow it is trimming columns from the record. For example if my record has columns A,B,C,D
The awk gives output as A,B,C
... (4 Replies)
Discussion started by: abhilashnair
4 Replies
6. Shell Programming and Scripting
I have test.xml
<emp><id>101</id><name>AAA</name><date>06/06/14 1811</date></emp>
<Join><id>101</id><city>london</city><date>06/06/14 2011</date></join>
<Join><id>101</id><city>new york</city><date>06/06/14 1811</date></join>
<Join><id>101</id><city>sydney</city><date>06/06/14... (2 Replies)
Discussion started by: vsraju
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I have a requirement where I need to find sum of values from column D through O present in a CSV file and check whether the sum of each Individual column matches with the value present for that corresponding column present in the trailer record.
For example, let's assume for column D... (9 Replies)
Discussion started by: tpk
9 Replies
8. UNIX for Advanced & Expert Users
I have a EBCDIC multi layout file which has a header record which is 21 bytes, The Detail records are 2427 bytes long and the trailer record is 9 bytes long.
Is there a command to remove the header as well as trailer record and read only the detail records while at the same time not altering... (1 Reply)
Discussion started by: abhilashnair
1 Replies
9. Shell Programming and Scripting
Hi,,
I have requirement that i need to get DISTINCT values from a table and if there are two records i need to update it to one record and then need to submit INSERT statements by using the updated value as a parameter. Here is the example follows..
SELECT DISTINCT ID FROM OFFER_GROUP WHERE... (1 Reply)
Discussion started by: Samah
1 Replies
10. Shell Programming and Scripting
Hi Team,
I have a file abc.dat which is a empty file. But it has null record in first line. I need to identify this unique file and handle it separately.
scenario 1:
abc/dw> wc abc.dat
1 0 1 abc.dat
abc/dw> cat abc.dat
abc/dw>
scenario 2:
abc/dw> wc pqr.dat
0 0 0 pqr.dat... (3 Replies)
Discussion started by: kmanivan82
3 Replies
LEARN ABOUT DEBIAN
rancid_par
rancid_par(1) General Commands Manual rancid_par(1)
NAME
rancid_par - parallel command processing
SYNOPSIS
rancid_par [-dfiqx] [-c command] [-l logfile] [-n #] file [file...]
DESCRIPTION
rancid_par takes a list of files to run a command on. The first line of each file begins with a colon (:) or a pound-sign (#). If a
colon, the remainder of the line is a command to run for each of the subsequent lines. If a pound-sign, then each subsequent line is a
(self-contained) command, unless the -c option was specified, in which case it operates as if the argument to -c had followed a colon on
the first line.
In each of the cases where the lines of the file following the first are not commands (i.e.: colon or -c), instances of open-close braces
({}) in the command will be replaced by these values.
For example, a inputfile whose contents is:
: echo {}
a
b
c
run with rancid_par like so:
%rancid_par -q inputfile
will produce the following output (order will vary):
b
a
c
The command-line options are as follows:
-c Command to be run on each of the arguments following the command-line options, where the first line of the input file(s) begins with
a pound-sign (#).
-d Print debugging information on standard error (stderr).
-f No file or STDIN, just run a quantity of the command specified with -c.
-i Run commands interactively through (multiple) xterm(1) processes.
-l Prefix of logfile name, as in prefix.N where N is the rancid_par process number ([0..]).
Default: par.log.<time>.[0..]
-n Number of simultaneous processes.
Default: 3
-q Quiet mode. Do not log anything. -q is mutually exclusive with the -x and -l options and the option appearing last will take
precedence.
-x View rancid_par logs in real-time via an xterm(1).
FILES
par.log.T.N Log file; where T is the current time in seconds since the
epoch and N is the rancid_par process number ([0..]).
18 December 2007 rancid_par(1)