03-25-2015
Please use code tags when presenting sample input, output, and code.
I cannot figure out what is actually in "1st file", what is actually in "2nd file", and what output you are trying to produce. Are the <25> and <88> and <-> present in those files???
Show us a few COMPLETE records from your two files (and give us their real names) and show us the corresponding output that should be produced from those two input files.
What operating system and shell are you using?
What have you tried to solved this problem?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies
2. Shell Programming and Scripting
How can using Vim, replace one character with another repeating it 10 times?
Ex.:
Transforming this: 125A986
That: 125##########986 (12 Replies)
Discussion started by: IJNeves
12 Replies
3. Shell Programming and Scripting
I am trying to use sed to replace specific characters at a specific position in the file with a different value... can this be done?
Example:
File:
A0199999123
A0199999124
A0199999125
Need to replace 99999 in positions 3-7 with 88888.
Any help is appreciated. (5 Replies)
Discussion started by: programmer22
5 Replies
4. Shell Programming and Scripting
Hi All,
Was wondering how I can do the following....
I have a String as follows
"ACCTRL000005022RRWDKKEEDKDD...."
This string can be in a file called tail.out or in a Variable called $VAR2
Now I have another variable called $VAR1="000004785" (9 bytes long), I need the content of... (5 Replies)
Discussion started by: mohullah
5 Replies
5. Shell Programming and Scripting
My script is extracting data from SQl session, however sometimes the result contains one or multiple space after/before any numerical value.
e,g .
"123","1 34","1 3 45", "43 5"
How to remove these unwanted spaces..so that I can get the following result :
"123","134",1345","435" (1 Reply)
Discussion started by: mady135
1 Replies
6. Shell Programming and Scripting
Hi all,
Greetings,
I have the following scenario, The contents of main file are like :
Unix|||||forum|||||||||||||||is||||||the||best
so||||||be|||||on||||||||||||||||||||||||||||||||||||||||||||it
And i need the output in the following form:
Unix=forum=is=the=best
so=be=on=it
... (3 Replies)
Discussion started by: dipanchandra
3 Replies
7. Shell Programming and Scripting
Hi,
I got long list of reference file (column one is refer to the header in input file; column 2 is info of start position in input file; column 3 is info of end position in input file;) shown as below:
read_2 10 15
read_3 5 8
read_1 4 10
.
.
.
Input file (huge file with total... (6 Replies)
Discussion started by: perl_beginner
6 Replies
8. Shell Programming and Scripting
i have a reqirement to adjust the data in a file based on a perticular character
the sample data is as below
483PDEAN CORRIGAN 52304037528955WAGES 50000
89BP ABCD MASTER352 5434604223735428 4200
58BP SOUTHERN WA848 ... (1 Reply)
Discussion started by: pema.yozer
1 Replies
9. Shell Programming and Scripting
This is a file that I have
test line 1 (55)
)
test line 2 (45)
)
I would like to change all the parens in position 1 of this file to a );
i only want to check position 1 in every line of the file. I have tried different varations of sed, but cannot seem to be able to limit it to... (1 Reply)
Discussion started by: JoeG
1 Replies
10. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT SUSE
opimport
OPIMPORT(1) General Commands Manual OPIMPORT(1)
NAME
opimport - converts sample database files
SYNOPSIS
opimport [ options ] input_file
DESCRIPTION
opimport converts sample database files from a foreign binary format (abi) to the native format.
OPTIONS
--abi / -a
Input abi file description location.
--force / -f
Force conversion even if the input and output abi are identical.
--output / -o filename
Specify the output filename. If the output file already exists it is not overwritten but data are accumulated in. Sample filename
are informative for post profile tools and must be kept identical, in other word the pathname from the first path component contain-
ing a '{' must be kept as it in the output filename.
--help / -? / --usage
Show help message.
--verbose / -V
Give verbose debugging output.
--version / -v
Show version.
ENVIRONMENT
No special environment variables are recognised by opimport
FILES
/var/lib/oprofile/abi
The abi file description of the sample database files
VERSION
This man page is current for oprofile-0.9.6.
SEE ALSO
/usr/share/doc/oprofile/, oprofile(1)
4th Berkeley Distribution Tue 06 July 2010 OPIMPORT(1)