Search Results

Search: Posts Made By: jeevs81
11,388
Posted By jeevs81
Hi Try this
Hi Try this, it's a little round about method, but this takes care of everything


#!/bin/bash
total_recs=`wc -l /etc/dev/test_recs | awk '{print $1}'`
i=1
while [ $i -le $total_recs ]; do...
1,560
Posted By jeevs81
Try this Code
#!/bin/bash
SysMth=`date +%m`
prior6month=`echo -e "07\n08\n09\n10\n11\n12\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n" | head -$SysMth | tail -6 | head -1`
totrec=`wc -l records.txt | awk...
67,252
Posted By jeevs81
Ashish, I tried it. It is coming as...
Ashish,

I tried it. It is coming as follows.

-bash-3.00$ cat test.txt
1 2 3 4
5 6 7 8
a b c d
e f g h
-bash-3.00$ sed 's/<space>/<tab>/g' test.txt
1 2 3 4
5 6 7 8
a b c d
e f g h...
67,252
Posted By jeevs81
Hi, I tried the code it is as follows: ...
Hi,

I tried the code it is as follows:
-bash-3.00$ cat -vet test.txt
1 2 3 4$
5 6 7 8$
a b c d$
e f g h$


Thanks,
Rajeevan D
67,252
Posted By jeevs81
Hi va2206, "t" is not the delimiter of my...
Hi va2206,

"t" is not the delimiter of my source file. My source file is delimited with a single white space. I need to convert them into tab delimited file. Please help me

Thanks,
Rajeevan D
67,252
Posted By jeevs81
va2206, I think you misunderstood, I have a...
va2206,

I think you misunderstood, I have a single space delimited file which I want to convert to tab delimited file.

Thanks,
Rajeevan
67,252
Posted By jeevs81
I'm still getting "t" as delimiter ...
I'm still getting "t" as delimiter

-bash-3.00$ cat -vet test.txt
1 2 3 4$
5 6 7 8$
a b c d$
e f g h$

-bash-3.00$ tr ' ' '\t' < test.txt
1t2t3t4
5t6t7t8
atbtctd
etftgth

Please help...
67,252
Posted By jeevs81
I'm getting "t" as a delimiter rather than a...
I'm getting "t" as a delimiter rather than a tab
67,252
Posted By jeevs81
Still same problem
360200tFY10tFEB-LTFt500420t12t0
460213tFY09tFEB-LTFt500420t09t15000
460213tFY09tFEB-LTFt500420t10t15000
077426tFY10tFEB-LTFt550200t12t0
077426tFY11tFEB-LTFt550200t12t0...
67,252
Posted By jeevs81
Converting Space delimited file to Tab delimited file
Hi all,

I have a file with single white space delimited values, I want to convert them to a tab delimited file.

I tried sed, tr ... but nothing is working.

Thanks,
Rajeevan D
Showing results 1 to 10 of 10

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