Search Results

Search: Posts Made By: satir
3,992
Posted By satir
i cant select just the 2nd column. To replace its...
i cant select just the 2nd column. To replace its easy with sed -i command but i can do that for the whole file. To remove points, i can use grep -Ev, but how select just the 2nd column to do these...
3,992
Posted By satir
in fact i want to replace "-" by semicolon...
in fact i want to replace "-" by semicolon instead simple comma (Mea culpa)
I prefer sed or perl because after some experiences i have seen that sed or perl commands was more fast than awk...
3,992
Posted By satir
Replacing values into a single column. sed/PERL
Hello everyone,
i need to replace in the second column of my csv file, points by nothing and dash by comma like this:

Input:
1 2 1;12.111.312-2;1.2;2;1-3
2 1 1;11.212.331-1;3.3;1;2-2

Output:...
5,773
Posted By satir
Short and effective. Thanks a lot
Short and effective. Thanks a lot
5,773
Posted By satir
Merge 2 last columns in a csv file using sed or perl
Hello everyone,
want to merge 2 last columns 3rd and 4rd (if it exists).

I have this

1;2;1;1
2;3;1;1
1;1;2
1;2;3;4
1;1;2
1;2;3;1

Desired output:

1;2;1 1
2;3;1 1
1;1;2
1;2;3 4...
3,817
Posted By satir
It works! many thanks
It works! many thanks
3,817
Posted By satir
Sed: how to merge two lines moving matched pattern to end of previous line
hello everyone,
im new here, and also programming with awk, sed and grep commands on linux.
In my text i have many lines with this config:

1 1 4 3 1 1 2 5
2 2 1 1 1 3 1 2
1 3 ...
Showing results 1 to 7 of 7

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