Search Results

Search: Posts Made By: techmoris
7,856
Posted By techmoris
Identify tables from Oracle sql scripts
Hi,

Please let me know if you have any thoughts on how to read a table that has all the oracle sql files or shell scripts at the job and step level to identify all the tables that does merge,...
2,063
Posted By techmoris
Field Genre can have any number of values...
Field Genre can have any number of values separated by a newline delimeter.
2,063
Posted By techmoris
Hi, I have a requirement that has 50-60...
Hi,

I have a requirement that has 50-60 million records that we need to split a delimited string (Delimeter is newline) into rows.

Source Data

SerialID UnidID GENRE
100 A11 AAAchar(10)BBB...
2,063
Posted By techmoris
Splitting delimited string into rows
Hi,

I have a requirement that has 50-60 million records that we need to split a delimited string (Delimeter is newline) into rows.

Source Date:

SerialID UnidID GENRE
100 A11 AAAchar(10)BBB...
3,698
Posted By techmoris
head -1 $filename|cut -c102-128
head -1 $filename|cut -c102-128
3,698
Posted By techmoris
I was able to get it done..thanks..
I was able to get it done..thanks..
3,698
Posted By techmoris
Finding a specific range of character in file
hi,

I want to store from 102 character to 128 character to a variable of header record which can be identified as 'HDR' which is the first 3 characters in the same line of a same.txt file.
Please...
5,442
Posted By techmoris
Help with grep at specific field of a file
hi,

I would like to search for a specific string at a specific line in a file and would like to know the count of it.

eg: samp.txt

ABC 1234 BELL
HNZ 4567 RING
NNN 5673 BELL


Please...
11,729
Posted By techmoris
gr8..thanks/...it worked..)
gr8..thanks/...it worked..)
11,729
Posted By techmoris
Hi anbu23, Thanks for quick reply..so this...
Hi anbu23,

Thanks for quick reply..so this will check for the string only in the 6, 7, 8, 9 positions only right..and it should not check any other positions of every records of the file..

sed...
11,729
Posted By techmoris
Find and replace a string a specific value in specific location in AIX
Hi,

I have following samp.txt file in unix.

samp.txt

01Roy2D3M000000
02Rad2D3M222222
.
.
.
.
10Mik0A2M343443

Desired Output

01Roy2A3M000000
02Rad2A3M222222
.
.
5,629
Posted By techmoris
Working..thx..
Gr8..thanks..this is working..)
9,957
Posted By techmoris
how to add blank spaces at the end of every record in a file.
hi,

Does anyone has any idea in adding few blank spaces at the end of every record in a file.

Eg:

file.txt

Baby Boy Kim 1234
Baby Boy Vik 1334

Desired output:-

output.txt

Baby...
5,629
Posted By techmoris
help with echo command in reading blank spaces in aix
Hi,

I have a test.txt and would like to put in a different file but while putting in the other file, blank spaces are missing.

$ indicates blank spaces

filename: test.txt:

USA$$$840$$$$
...
Forum: AIX 02-16-2010
2,307
Posted By techmoris
missing blank spaces while cutting the file to individual files
$ indicates blank space

file1.txt:
001_AHaris$$$$$020$$$$$$$$$
001_ATony$$$$$$030$$$$$$$$$
002_AChris$$$$$090$$$$$$$$$
002_ASmit$$$$$$060$$$$$$$$$
003_AJhon$$$$$$001$$$$$$$$$

$ indicates...
3,816
Posted By techmoris
didn't worked in AIX
CODE: awk '{ str=substr($0,0,5); print >str; }' file.txt

Please find the following error..

awk: A print or getline function must have a file name

The input line number is 6. The file is...
3,816
Posted By techmoris
didn't worked
while read line;do echo "${line#*_}" >> ${line}.txt;done < file.txt

still not getting the blank spaces...after the end of the line in the file..
3,816
Posted By techmoris
Blank spaces missing in the file
I have a file which has blank spaces($) and the blank spaces at the end of the file are not coming up while cutting the files.. please find the following file, desired output..

file1:...
4,514
Posted By techmoris
Thx...
Thanks this is working...
4,514
Posted By techmoris
fixed length text file padding issues in AIX
Hi,

I have a fixed length text file that needs to be cut into individual files in aix and facing padding issues. If I have multiple blank spaces in the file it is just making it one while cutting...
23,737
Posted By techmoris
thx
tHANKS
23,737
Posted By techmoris
Using cut command in a fixed length file
Hi,

I have a file which have set of rows and has to create separate files based on the id.

Eg:
001_AHaris020
001_ATony030
002_AChris090
002_ASmit060
003_AJhon001
...
2,427
Posted By techmoris
cut and append the file based on id
Hi,

I have a file which have set of rows and has to create separate files based on the id.

Eg:
001_AHaris020
001_ATony030
002_AChris090
002_ASmit060
003_AJhon001
...
2,108
Posted By techmoris
sed help on replacing space before and after *
I would like to replace the value of * (which might have one or more whitespace(s) before and after *) using sed command in aix.

Eg: Var='Hi I am there *

Desired output: Hi I am there*
12,017
Posted By techmoris
problem in using cat and ended up with no space error in aix
While doing cat on a large file (3 GB file) , I am getting the no space error in the shell script hugefile.sh.

Eg: for i in `cat hugefile.txt`
do
echo "$i"
done

error:...
Showing results 1 to 25 of 51

 
All times are GMT -4. The time now is 12:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy