Search Results

Search: Posts Made By: dsid
1,302
Posted By dsid
Rows to columns
Hi,

I have a text file with records as below
Service Contract: [497 - Service Contract 1]
Account Type: [170 - Paymnt Acct Retail ]
Client Number: [64064166]
Group Number: [00000099]
Account...
1,991
Posted By dsid
thank you all for the commands given to me in the...
thank you all for the commands given to me in the earlier posts.

Iv got a couple of other records that I wanna fetch and it is related to the same file so not wanting to open a new thread. Would...
1,991
Posted By dsid
can you please explain the code in RED ...
can you please explain the code in RED



I tweaked your code a bit awk -v A=5 '/^0[67][MV].{22}003529/{c=A+1}c-->0' and it is running fine in AIX, but why is it not running on Linux. Both OS has...
1,991
Posted By dsid
using Linux on deaktop but grep on AIX production...
using Linux on deaktop but grep on AIX production doesn't support the -A switch
1,991
Posted By dsid
both of your commands work, however, I had to...
both of your commands work, however, I had to tweak your second command and put a '5' instead of 6 cos it was printing that extra line at the end. can you please explain the whole command and why are...
1,991
Posted By dsid
I had tried your command with a little tweak ...
I had tried your command with a little tweak

awk '/^0[67][MV].*003529/' and the output I got was what it was supposed to give. However, it isn't exactly suitable for me as I am looking for only...
1,991
Posted By dsid
Selective printing based on matched record
Hi,

I have file with thousands of lines somewhat similar to the below 6 lines

06MXXXXXXXXXXXXXXXX 0328 003529 J27300022 MICROSOFT *MSN
06<1 000000001344392 ...
15,785
Posted By dsid
@scrutinizer thanks for tip :b:
@scrutinizer thanks for tip :b:
15,785
Posted By dsid
saved me there:rolleyes::b:
saved me there:rolleyes::b:
15,785
Posted By dsid
thanks will try it out and let you know:b:
thanks will try it out and let you know:b:
15,785
Posted By dsid
sorry about that, I actually modified the code...
sorry about that, I actually modified the code above to suit the AIX sed and am using the below code now
$cat v.txt...
15,785
Posted By dsid
sed command on AIX, replace specific characters
Hi,

Im using sed on an AIX machine. I am trying to change the 137-139 characters if they are a ' 36'/'000' to a '036'. The positions that need to be changed are fixed.

the source data that I...
1,277
Posted By dsid
@apmcd47, my AIX doesn't have the flags you...
@apmcd47, my AIX doesn't have the flags you suggested, but thanks anyway



hi, couple of questions

1. /^.*=| what does this mean in the regex part of gsub?

2. ^.*=|\)/, "" in the gsub()...
1,277
Posted By dsid
Splitting multiple fields of /usr/bin/id
Hi,

Iv got the following input
$id |grep uid
uid=6090(dsiddiq) gid=1(staff) groups=4001(cdgrp)

and Im using the below command to split the field to grab the numberical userid as well the...
1,942
Posted By dsid
this is exactly what i want I am pretty sure...
this is exactly what i want

I am pretty sure there will never be any other characters than 000..but its good to learn how i can use the 3 dots while searching for a pattern


Thread continued...
1,942
Posted By dsid
position 137-139 will definitely be 000 and that...
position 137-139 will definitely be 000 and that needs to be replaced by 036.

thank you both for the explanations

actually I just thought about it RudiC is correct, (...) would mean any...
1,942
Posted By dsid
if i understand correctly, you are searching for...
if i understand correctly, you are searching for lines starting with 4000, go on with any characters till the 136th position; the next 3 dots (...) should be replaced with a 036;\1 ->would be the 1st...
1,942
Posted By dsid
Search and replace specific positions of specific lines
Hi,

I have a file with hundreds of lines. I want to search for particular lines starting with 4000, search and replace the 137-139 position characters; which will be '000', with '036'. Can all of...
4,204
Posted By dsid
point noted. Thank you again
point noted. Thank you again
4,204
Posted By dsid
brilliant, im like amazing, this is a fantastic...
brilliant, im like amazing, this is a fantastic shortcut, this work around is just amazing.
thank you, thank you so much
4,204
Posted By dsid
hi, im trying hard to understand why did you use...
hi, im trying hard to understand why did you use a 24 element array; on what basis have you formulated the array; what basis are you calculating the index value and then printing it out as the...
4,204
Posted By dsid
amazing. thanks a lot, but can you please tell me...
amazing. thanks a lot, but can you please tell me what the above command means. I'm using the 2nd command. Tried googling the split command and syntax simply comes up with and array and field...
4,204
Posted By dsid
@corona688 sorry if you got offended. i didnt...
@corona688 sorry if you got offended. i didnt mean it that way. i only posed a question cos i had run your code as it is
4,204
Posted By dsid
sure. I am travelling now, once I reach home I...
sure. I am travelling now, once I reach home I will get back with an update
4,204
Posted By dsid
once i figure out what CUT that particular time...
once i figure out what CUT that particular time period is from, Im basically assigning similar CUT names to a time period range. Once that is finished, I will club all the incoming files in that CUT...
Showing results 1 to 25 of 62

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