Search Results

Search: Posts Made By: nike27
1,256
Posted By nike27
Thanks a lot.
Thanks a lot.
1,256
Posted By nike27
UNIX append field with comparing fields from multiple column
I have a csv dump from sql server that needs to be converted so it can be feed to another program. I already sorted on field 1 but there are multiple columns with same field 1 where it needs to be...
2,365
Posted By nike27
any thoughts ?
any thoughts ?
2,707
Posted By nike27
Following will search the directory for specified...
Following will search the directory for specified file and do replacement at the same time.


find <type of file> | xargs perl -pi -e 's/value1/values2/g'

for instance, to find all xmls and...
2,707
Posted By nike27
try this: find <type of file> | xargs perl...
try this:

find <type of file> | xargs perl -pi -e 's/value1/values2/g'
2,365
Posted By nike27
Thanks for explanation, was looking around as...
Thanks for explanation, was looking around as well why $2=$2. Also is it possible to sort further and have uniq $1 and append $4 based on different value of $2. i,e in second/third line, $2 changes...
2,365
Posted By nike27
yes, it should be fine. Basically, i am looking...
yes, it should be fine. Basically, i am looking for three columns that can be feed back to process the file.

so from following:

ES FP,SL22 (70000)|XX22 (80000)
VIL SJ,SL22 (20000)|XX22 (20000)...
2,365
Posted By nike27
That a lot, how can i even sort on f1 again and...
That a lot, how can i even sort on f1 again and append f2.

i.e

from

ES FP,I,SL22 (70000)|XX22 (80000)
VIL SJ,I,SL22 (20000)|XX22 (20000)
VIL SJ,N,SL22 (25040222)|XX22 (25040222)
MING...
1,226
Posted By nike27
UNIX compare, sort lines and append difference
To make it easier, i gave following example. It is not homework or classwork. Instead, i have a huge csv file dump from tsql with 15 columns and around 300 rows. I was able to extract content that...
2,365
Posted By nike27
UNIX compare, sort lines and append difference
To make it easier, i gave following example. It is not homework or classwork. Instead, i have a huge csv file dump from tsql with 15 columns and around 300 rows. I was able to extract content that...
988
Posted By nike27
UNIX compare, sort lines and append difference
Hi,

I have a file that needs to be converted:

content is:

a, b, 4
a ,b, 5
x, y, 1
a, b, 1
x, y, 3

how can i get:

a, b, 1|4|5

x,y 1|3
Showing results 1 to 11 of 11

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