Search Results

Search: Posts Made By: deadyetagain
6,644
Posted By deadyetagain
Does this remove the line when $2 is found to...
Does this remove the line when $2 is found to have been a duplicate?

---------- Post updated at 05:19 PM ---------- Previous update was at 05:17 PM ----------



Thank you for the suggestion....
6,644
Posted By deadyetagain
Identify duplicate values at first column in csv file
Input
1,ABCD,no
2,system,yes
3,ABCD,yes
4,XYZ,no
5,XYZ,yes
6,pc,noCode used to find duplicate with regard to 2nd column
awk 'NR == 1 {p=$2; next} p == $2 { print "Line" NR "$2 is...
5,112
Posted By deadyetagain
awk string comparison unterminated quoted string andrule of thumb
I have the logic below to look up for matches within the columns between the two files with awk.

In the if statement is where the string comparison is attempted with ==
The issue seems to be with...
1,509
Posted By deadyetagain
Unfortunately that one is not working.. why...
Unfortunately that one is not working..
why isn't this one working either? Do you see something fundamentally wrong?

$test = "[0mawk -F, '(NR==2) {print $3"ABCXYZ"}' portfolio-hierarchy .csv ...
1,509
Posted By deadyetagain
the record is as such, i just need something that...
the record is as such, i just need something that works theoretically for such, that finds the two instances of ABCD, but extract the `Root` out of ABCD......

[awk -F, '(NR==2) {print $3"ABCXYZ"}'...
1,509
Posted By deadyetagain
Looking for a perl-compatible regex solution
This is for PHP preg_match code - which is PCRE therefore looking for a perl compatible suggestion

I have this line returned I want to match and return..

[awk -F, '(NR==2) {print $3"ABCXYZ"}'...
1,511
Posted By deadyetagain
one more
If i want to assign post result in shell script as:
assigning the literal string to a variable ..

echo $VERSION | sed 's#\/#\\\/#g' > $MOD_VERSION

What's the way to make that work?
1,511
Posted By deadyetagain
Search for / and insert \ for every instance
Hi,

I want to do a sed (linux) or the alternative in PHP to insert a backslash in front of every occurrence of every forward slash

ex.

/archive/data/stanley
-->
\/archive\/data\/stanley
...
1,721
Posted By deadyetagain
This helped tremendously! Thank you so very much....
This helped tremendously! Thank you so very much. You are a life saver
1,721
Posted By deadyetagain
question con't
awk -F, -v COUNT=$count '
(NR >= 2){
for(i=1; i<=NF; i++)
{
print i
if ($i ~/^</)
{
print $i
echo "USDOLLARS|xxx>" | sed 's/^<//; s/|.*//g'
...
1,721
Posted By deadyetagain
and also, when I put this on command line or part...
and also, when I put this on command line or part of shell script ->works
when i insert it as part of awk program -> syntax error complained

I am fighting this issue alot as i'm relatively new to...
1,721
Posted By deadyetagain
Hi Thank you so much but this INCLUDES the | at...
Hi Thank you so much
but this INCLUDES the | at the end
how do i exclude the | as well?
1,721
Posted By deadyetagain
Question on awk/sed/regex
I plan to do something like this in awk that's embedded in a shell script.

I have extracted a text file using awk and the output is
before example:
<USDOLLARS|xxx>
I want to use get rid of...
Showing results 1 to 13 of 13

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