Using AWK:
awk '
BEGIN { OFS="'"': '"'";b.com/tag/start">start=1 }
NR>=b.com/tag/start">start && $0!="" {
for(i=1;i<=NF;i++)
a[i]=a[i] (NR==b.com/tag/start">start?"":OFS) $i
}
END {
for(j=1;j<i;j++)
print "'"'"'"a[j]"'"',"'"
}' file.txt
Output
'а': 'a',
'б': 'b',
'в': 'b.com/tag/c">c',
'г': 'č',
'д': 'ć',
manpreet
Best Answer
2 years ago
I woulref="https://forum.tuteehub.com/tag/d">d like to create a PHP array ref="https://forum.tuteehuref="https://forum.tuteehub.com/tag/b">b.com/tag/f">from the Serref="https://forum.tuteehub.com/tag/b">bian alpharef="https://forum.tuteehub.com/tag/b">bet.
Out oref="https://forum.tuteehuref="https://forum.tuteehub.com/tag/b">b.com/tag/f">f
shoulref="https://forum.tuteehub.com/tag/d">d ref="https://forum.tuteehub.com/tag/b">become this (a custom array):
How can I ref="https://forum.tuteehub.com/tag/d">do this with awk or seref="https://forum.tuteehub.com/tag/d">d?