Search Results

Search: Posts Made By: codpilot
10,104
Posted By codpilot
Interestingly enough, I downloaded them from an...
Interestingly enough, I downloaded them from an older webpage (previous class) and loaded them back up (all through a web interface - so I have no idea what the basis is for the down/up part)

I...
10,104
Posted By codpilot
Well I think the problem is quite simply - the...
Well I think the problem is quite simply - the original files have messed up linefeeds/CR anddon't play well. I reentered the files (with a common separator) and they work fine - now I'll try them...
10,104
Posted By codpilot
there must be something else at work here. I...
there must be something else at work here. I hand executed each line of my script to get to the _colon files, replacing my command with your command. Still the result of my join is empty

This is...
10,104
Posted By codpilot
Tried it - no luck with that too.
Tried it - no luck with that too.
10,104
Posted By codpilot
In the script it's correct - my typing may be...
In the script it's correct - my typing may be discombobulated though. The whole objective is to take a file, change the separators then join them together. Apparently sed does something so that when...
10,104
Posted By codpilot
Even with that, they still won't join. I just...
Even with that, they still won't join. I just modded the script. As it stood I was stripping out the date field that had the same field separator (with the cut command) so the field position in the...
10,104
Posted By codpilot
Sorry I tried to upload the files and that didn't...
Sorry I tried to upload the files and that didn't work for some reason, so I edited it with sample input.

You are correct, that works fine. When I create the files with a common separator its...
10,104
Posted By codpilot
Sure thing: sales is the initial sales file ...
Sure thing:

sales is the initial sales file
associates is the associates file
SRep is the script

sales2 and assoc are the same files hand typed with the ":" separator. I don't/haven't tried...
10,104
Posted By codpilot
I did that: join -t: -1 3 -2 1 file1 file2 ...
I did that:

join -t: -1 3 -2 1 file1 file2

and if I hand type the files in - no problem. If however I use the original files with the differing separators, use sed to convert them to a ":"...
10,104
Posted By codpilot
more join problems
Well here's my join issue

I have a file in the following format:
id/name/salary/position

and a file in the following format
number,amount,id

if I use sed to replace the different...
Showing results 1 to 10 of 10

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