The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-26-2006
napolayan napolayan is offline
Registered User
 

Join Date: Oct 2006
Location: Bangalore, India
Posts: 41
What does .)1 do?

Hi!

Can someone tell me what does the '.)1' (highlighted in bold and between the two awk scripts) do? Guess it connects the two scripts but what is the reason or logic behind this syntax?


#!/bin/awk -f
BEGIN {
# change the record separator from newline to nothing
RS=""
# change the field separator from whitespace to newline
FS="n"
}
{
# print the second and third line of the file
print $2, $3;
}
.)l
#!/bin/awk -f
# reports which file is being read
BEGIN {
f="";
}
{ if (f != FILENAME) {
print "reading", FILENAME;
f=FILENAME;
}
print;
}
Reply With Quote
Forum Sponsor