Folks,
I am getting a space now, tried applying space
awk '{ printf("!\ninterface %s\n%s\n%s\n", $0, " shut", " switchport mode access")}' file1.txt
but i am not getting interface at the beginning for the first line.
Aejaz,
pls use the vB Codes when posting either code samples and/or quoting input/output.
Not doing so makes it very difficult for anyone here to help you.
Thanks.