i have a file in the gz format , the content of the file is as follow.
gzcat f1.gz
# 1.name
# 2.location
# 3.age
# 4.dob
.
.
.
.
.
.
.
.
.
# 43.hobbies
< Aravind,33,chennai,09091980, , , , , , , surfing>
< Swapnil,32,bhopal,01121981, , , , , , , cricket>
i want to hide the DoB 4th column with ******* and any suggestion please.
gzcat f1.gz | nawk '{gsub("09091980","********",$5)}1' | more
by doing this i am able to do line by line only , how to do it at one shot , any suggestion please.
Is it possible to do without disturbing the first 45 lines where it indicates the description of the positions.