How to print the first field which is having the value based on delimeter – unix.stackexchange.com

File(myfile.txt) contains data as follows: abc#ab1=23 nrt# #clb1aX amd#322 Desired Output: abc nrt clb1ax amd I could do like this, for i in `cat myfile.txt` do s1=`echo $i | cut -d'#' -f1`; ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to print the first field which is having the value based on delimeter – unix.stackexchange.com"