Answer the question
In order to leave comments, you need to log in
How to determine the field number $ in AWK? in line $0, whose value matches the pattern you are looking for?
I am parsing a file with a variable number of fields in the lines, fields of the form name="value".
Need to find all fields with the given name .
It is clear how to find $0 in the entire line, but how to determine the field number with the desired name?
Answer the question
In order to leave comments, you need to log in
About:
<style type="text/css">
.warp {
display: flex;
}
</style>
<form method="POST" action="index.php">
<div class="warp">
<div>Цена</div>
<div><input type="text"></div>
<div>комиссия</div>
</div>
<div class="warp">
<div>Яндекс деньги</div>
<div><input type="text"></div>
<div></div>
</div>
<div class="warp">
<div>телефон</div>
<div><input type="text"></div>
<div></div>
</div>
<div class="warp">
<div>телефон</div>
<div><textarea></textarea></div>
</div>
<div class="warp">
<div>капча</div>
<div><input type="text"></div>
<div><img></div>
</div>
<div class="warp">
<div>текст текст тексттекст текст тексттекст текст тексттекст текст тексттекст текст текст</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question