Search Results

Search: Posts Made By: tarun.trehan
2,319
Posted By tarun.trehan
Yes, they are between the string.
Yes, they are between the string.
2,319
Posted By tarun.trehan
Remove Special Characters Within Text
Hi,

I have a "|" delimited file that is exported from a database.
There is one column in the file which has description/comments entered by some application user. It has "Control-M" character and...
7,238
Posted By tarun.trehan
Thanks Rudi. Running in parallel is...
Thanks Rudi.

Running in parallel is certainly one option and i am exploring that.
Certainly agree there are specific programs designed for it; but i wanted to invest some time to find out...
7,238
Posted By tarun.trehan
All, Thanks for your inputs. The suggested...
All,

Thanks for your inputs.
The suggested solution works for me
awk -F\| -v X="an" 'match ($NF, ".*"X) {print $0, RLENGTH-length(X)+1}' OFS=\| file

The project involves searching a list of...
7,238
Posted By tarun.trehan
Yoda, Thanks for the inputs. nawk works but...
Yoda,

Thanks for the inputs. nawk works but have another challenge here:
The string to search for is dynamic and hence needs to passed as a variable to awk.

I tried the following code though i...
7,238
Posted By tarun.trehan
Yoda, Thanks for your reply. Appreciate your...
Yoda,

Thanks for your reply. Appreciate your inputs.
I have the following queries:

1. i am getting a syntax error around the n = match ( $i, /n[^n]*$/ )..may be i am not pasting the character...
7,238
Posted By tarun.trehan
awk : search last index in specific column
I am trying to search a given text in a file and find its last occurrence index. The task is to append the searched index in the same file but in a separate column. I am able to accomplish the task...
Showing results 1 to 7 of 7

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