Search Results

Search: Posts Made By: nelson553011
3,966
Posted By nelson553011
Thanks and Sorry
Sorry Shell, I tried to come up with every situation in my head, but missed that one scenario. I'm trying to come up with a solution without having an actual test file from my customer yet, trying...
3,966
Posted By nelson553011
Thanks...But what if
That worked for the sample that I gave you, but I thought of another scenario that I need to account for. What would happen if I added another comma to the end and then some more text? Sample -
...
3,966
Posted By nelson553011
Help Replacing Characters in Flat File
I was wondering if somebody could help me with something on UNIX. I have a file that looks like this -

"nelson,bill","bill","123 Main St","Mpls","MN",55444,8877,william

I want to replace all...
11,732
Posted By nelson553011
More Info
I'm sorry, I should have explain it better. As I was trying to work with more data and more files I ran into this new scenario. I maybe should have opened a new thread, but I wasn't sure. This is...
11,732
Posted By nelson553011
Sample file
Here is a very small sample file with 3 fields. The first record has data in field 1 and field 3 and the 2nd field is empty and the second record has data in field 1 and 2 and field 3 is empty.
11,732
Posted By nelson553011
Any other ideas?
I still seem to be getting the same results as before. I have dug through every book I have and I cant figure out how to fix this. It's still skipping over empty fields instead of setting them to...
11,732
Posted By nelson553011
1 More Thing
I thought I had this figured out, but I'm running into another scenario that I need help with. Do you know how I can fix this if I have no data in a field, <<tab>><<tab>>? What is happening is that...
11,732
Posted By nelson553011
That's it!!!
Thanks for your help.
11,732
Posted By nelson553011
Got me further
Thanks for that help, that got me most of the way to where I needed. Do you know how to do the NULL padding after the strings instead of space padding? I thought I figured it out with a -Z on the...
11,732
Posted By nelson553011
Convert delimited to fixed length
Hi, I have to change a tab delimited file to a fixed length file. For text fields I need to left justify and NULL fill to the right and for number fields I need to right justify and zero fill to the...
Forum: AIX 11-16-2004
6,504
Posted By nelson553011
Sorry about that, good idea. Here's my solution...
Sorry about that, good idea. Here's my solution -
grep -v '^.\{48\}[[:space:]].*[[:space:]].*[[:space:]].*' <infile> > <outfile>
Forum: AIX 11-15-2004
6,504
Posted By nelson553011
Figured it out
You can never mind this question, I figured it out.
Forum: AIX 11-15-2004
6,504
Posted By nelson553011
grep - multiple positions
I was wondering if anybody can help me with this. I have the following code to look for a space in position #48 and I want to change it so it looks in position 48, 59, and 50 for spaces. How can I...
Showing results 1 to 13 of 13

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