Search Results

Search: Posts Made By: mihirk
5,428
Posted By mihirk
Find and replace a part of the word in Shell
I have a csv file in which there are numbers like

078976/9XXX
098754/8XXX

I want to replace the XXX with null. I want to know the command/code to do this.
I know how to replace the whole...
10,493
Posted By mihirk
Difference between above codes
@vgersh99:

Can you tell me in what way the 2 codes are different, because they give the same result otherwise ??

Also since I have to use this code on a particular field of a csv(3rd field),...
10,493
Posted By mihirk
thanks...
Thanks....u've been a gr8 help...
10,493
Posted By mihirk
thanks..but it ignores '0' in the beginning
echo '079661/3' | awk -F'/' '{for(i=0; i<$2; i++) print $1+i}'

79661
79662
79663

Since this is a phone number series, I don't want the 0's in the beginning to be ignored.

Thanks a lot for...
10,493
Posted By mihirk
Help in parsing a CSV file with Shell script
I have a CSV file which contains number series as one of the fields. Some of the records of the field look like :

079661/3

I have to convert the above series as
079661
079662
079663
and...
Showing results 1 to 5 of 5

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