05-04-2009
A123456 11111
B123456 22222
C123456 33333
44444
D123456 55555
One more note, I also tried to check the length of fld1 (after trimming the contents) to write the record to reject file ... but still in vain
Thanks and Regards,
Vidya
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Helllo UNIX Forum :)
Since I am posting on this board, yes, I am new to UNIX!
I read a copy of "UNIX made easy" from 1990, which felt like a making a "computer-science time jump" backwards ;)
So, basically I have some sort of understanding what the basic concept is.
Problem Description:... (6 Replies)
Discussion started by: Kasimir
6 Replies
2. Shell Programming and Scripting
Hi
I have files in our UNIX directory like the below
-rw-r--r-- 1 devinfo devsupp 872 Sep 14 02:09 IMGBTREE27309_12272_11_1_0_FK.idx0
-rw-r--r-- 1 devinfo devsupp 872 Sep 14 02:09 IMGBTREE27309_12272_11_0_0_PK.idx0
-rw-r--r-- 1 devinfo devsupp 432 Sep 14... (7 Replies)
Discussion started by: rbmuruga
7 Replies
3. Shell Programming and Scripting
Hi
my input file is
<so > < Time > <Pid> <some ro><Job Name>
111004 04554447 26817 JOB03275 MBPDVLOI
111004 04554473 26817 JOB03275 MBPDVLOI
111004 04554778 26807 JOB03276 MBPDVAWD
111004 04554779 26807 JOB03276 MBPDVAWD
111004 04554780 26817 ... (4 Replies)
Discussion started by: rakeshkumar
4 Replies
4. UNIX for Dummies Questions & Answers
I have a script where the the 9th line looks like this:
$filename=sprintf("250.1chr%d.ped", $N);
I want to modify this script 1000 times, changing 250.1chr%d.ped to 250.2chr%d.ped, 250.3chr%.ped.......and so on all the way to 250.1000chr%d.ped and store each output in files called
... (4 Replies)
Discussion started by: evelibertine
4 Replies
5. UNIX for Dummies Questions & Answers
Hi All. Thanks for your help in advance.
I have a requirement to examine the number of delimiters in each record of a file. If the record has the expected number of delimiters it should be passed into a 'good' file. If it does not, the record should be passed into a 'bad' file. I have been able... (8 Replies)
Discussion started by: codestar1
8 Replies
6. Shell Programming and Scripting
Hello all,
I wrote this command line for some calculation on my given input files based on another input file which is a txt file.
while read BAM REGION; do samtools view $BAM $REGION | awk '{if ($2==0) print $0}' | wc -l >>log.txt; echo "$REGION"; done >> log.txt <regions.txt
It takes... (4 Replies)
Discussion started by: @man
4 Replies
7. Programming
Hello,
I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this :
This is the output of ls command : I stored the output in a file filelist
1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies
8. Shell Programming and Scripting
Hi Guys,
I am using set -x in my script to track the flow of the script.
But if i want to write the output of the set -x into a log file, how do i do it?
Thanks,
Ajay (3 Replies)
Discussion started by: Ajay Venkatesan
3 Replies
9. UNIX for Dummies Questions & Answers
I have one input file ABC.txt and one output DEF.txt. After the ABC is processed and created output, I want to rename ABC.txt to ABC.orig and DEF to ABC.txt. Currently when I am doing this, it does not process the input file as it cannot read and write to the same file. How can I achieve this?
... (12 Replies)
Discussion started by: High-T
12 Replies
10. Shell Programming and Scripting
I am trying to output the matches between $1 of file1 to $3 of file2 into a new file match.
I am also wanting to output the mismatches between those same 2 files and fields to two separate new files called missing from file1 and missing from file2. The input files are tab-delimited, but the... (9 Replies)
Discussion started by: cmccabe
9 Replies
LEARN ABOUT DEBIAN
rds-gen
RDS-GEN-SINK(1) BSD General Commands Manual RDS-GEN-SINK(1)
NAME
rds-gen -- write data from a file to an RDS socket
rds-sink -- write data from an RDS socket to a file
SYNOPSIS
rds-gen [-s source_address:source_port] [-d destination_address:destination_port] [-f input_file] [-m message_size] [-l total_bytes]
[-i interval]
rds-sink [-s listen_address:listen_port] [-f output_file] [-i interval]
DESCRIPTION
The rds-gen and rds-sink utilities are used to stream data through RDS sockets. rds-gen reads data from a file descriptor and sends it as
messages down an RDS socket. rds-sink receives messages from an RDS socket and writes it to a file descriptor.
The following options are shared between rds-gen and rds-sink:
-s address:port
Binds the RDS socket to the given address and port. rds-gen will send messages from this address and port. rds-sink will receive
messages sent to this address and port.
-f file
rds-gen will read data from this file and rds-sink will write data to this file. If '-' is given as the filename then rds-gen will
use standard input and rds-sink will use standard output.
-i interval_seconds
An iterative summary of the number and size of messages that are sent and received is written to standard error at this interval.
In addition, rds-gen supports the following options:
-d address:port
Messages are sent to this destination address and port. If this option is specified multiple times then the messages are sent to
each destination address in a round-robin fashion.
-m message_size
Specifies the size of the messages that are sent down the RDS socket. The default message size is 4k. The message size must not be
greater than the buffer size.
-l total_bytes
Specifies the number of bytes that will be sent out the socket before rds-gen exits. If this is not specified and rds-gen was given
a source file then it will run until it gets EOF from the file. If no file was given and this option is not specified then rds-gen
will send data indefinitely.
EXAMPLES
rds-gen on host src sends infinite data to rds-sink on dest who prints out the amount of data it receives every second.
$ rds-sink -s dest:22222 -i 1
$ rds-gen -s src:11111 -d dest:22222
Read 100M from /dev/zero on src and write it to /dev/null on dest, printing stats on both sides every minute.
$ rds-sink -s dest:22222 -f /dev/null -i 60
$ rds-gen -s src:11111 -f /dev/zero -d dest:22222 -i 60
Watch rds-gen write data as fast as it can into a local black hole because there is no bound receiving socket.
$ rds-gen -s src:11111 -d localhost:31337 -i 1
BSD
October 30, 2006 BSD