Search Results

Search: Posts Made By: harsha1238
4,714
Posted By harsha1238
These rows are random. I used sed command to...
These rows are random. I used sed command to convert the intial delmiters to another value and then tried to strip the additinal chars from the required column


echo "1,A,USA,0" > test_input.dat...
4,714
Posted By harsha1238
Here is a sample. I am using ',' as field...
Here is a sample. I am using ',' as field delimiter instead of cntl-a.1,A,USA,0
2,B,GERMANY,0
3,C,IND,IA,0
4,D,CH,INA,0

In the above example, the values "IND,IA" and "CH,INA" are coming from...
4,714
Posted By harsha1238
Need to strip control-A characters from a column in a file
Hi All,

I currently have flat file with 32 columns. The field delimiter is cntl-A ( \x01). The file has been extracted from an oracle table using a datastage job. However, in the 6th field, the...
1,063
Posted By harsha1238
I tried these steps: Used the below...
I tried these steps:


Used the below command to roll all the lines into a single line
sed -i -e :a -e 'N;s/\n//;ta' input_file.txt

2. Then converted the ~ to a new line


sed -i...
1,063
Posted By harsha1238
Need help in creating a file in required format form another existing file
I have a text file with contents like this:
a,b,c,
d~e,f,g,h~i,j
,k,l,m~n,o,p,q~

I need to convert this file into this format unix shell script commands:
a,b,c,d~
e,f,g,h~
i,j,k,l,m~...
Showing results 1 to 5 of 5

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