i need remove ing in awk

December 8, 2010 at 07:47:28
Specs: Windows Vista
i want to use "awk" for this

let say the word are " reading , working, walking, "
i want to remove "ing" from those words and i need to print like this

read , work, walk

how should I do this ?


See More: i need remove ing in awk

Report •

#1
December 8, 2010 at 09:23:56
Use the gsub function to remove the "ing":

echo " reading , working, walking, "| awk ' {
   gsub("ing","", $0)
   print $0
} '


Report •

#2
December 8, 2010 at 12:47:28
thanks for replay

how to count how many "ing" in the line or paragraph


Report •
Related Solutions


Ask Question