Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does ;1 do in awk scripts ?

Status
Not open for further replies.

barisg

Technical User
Apr 9, 2003
1
US
Hi all,

I have a script as follows;
/^ *[0-9]+K[^ ]+ *$/{sub("^ *[0-9]+K",sprintf("%-8dK",$1))};1

input file has many strings like
445517K33_4
and the output generated by the scripts
445517 K33_4

What is the role of ";1" here ?

Many thanks in advance

BGoktas
 
'1' is equvalent to 'print $0' vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top