Quote:
Originally Posted by krishna.fuji
and important is this script should touch only the line which are having combination of Personal Unit,Plant,Department in a single line
|
Forget about fancy colors, and use
code tags when you post code or data.
Code:
awk -F, '{if(/Personal Unit/&&/Plant/&&/Departmant/){printf "# %s\n%s\n%s\n%s\n",$0,$1,$2,$3}else{print}}' file