Search Results

Search: Posts Made By: Cultcha
8,762
Posted By Cultcha
Thanks so much! This was exactly what I was...
Thanks so much! This was exactly what I was looking for.

Just in case this is useful to anyone else at any stage I then replaced the ^M characters created with $s using:

sed 's/^M/$/g' file1...
8,762
Posted By Cultcha
Hi again, thanks for your help with this! ...
Hi again, thanks for your help with this!

This file contains records matched on column 1 and column 4.

There can be up to four rows for each record, these rows appear sequentially on the...
8,762
Posted By Cultcha
From my test file, I should have 19 lines after...
From my test file, I should have 19 lines after the merge. I have 23. Maybe I would be best to use AWK to substitute the new lines based on the two conditions?
8,762
Posted By Cultcha
Hi, thanks for the response, but there are two...
Hi, thanks for the response, but there are two variables that should match before joining the lines.

The first and the fourth columns have to match.

These will change after one line/two...
8,762
Posted By Cultcha
That's done the trick!! Thanks a million!!...
That's done the trick!!

Thanks a million!!

---------- Post updated at 08:43 AM ---------- Previous update was at 07:16 AM ----------

Sorry to come back to you on this again.

It seems...
8,762
Posted By Cultcha
Thanks for you response. This hasn't done...
Thanks for you response.

This hasn't done the trick for me though. The file that I'm working on is fixed length and contains both text and numerics throughout. The variables that I am matching...
8,762
Posted By Cultcha
bash - joining lines in a file
I’m writing a bash shell script and I want to join lines together where two variables on each line are the same ie.

12345variablestuff43212morevariablestuff...
Showing results 1 to 7 of 7

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