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!

system command syntax

Status
Not open for further replies.

rogers42

Technical User
Mar 30, 2007
64
CA
Hi,

My awk utility looks as folows:

BEGIN {
file1 = ARGV[1];
file2 = ARGV[2];

# Cleanup the existing out files
system("rm common.out");

# Get common records
system("comm -12 file1 file2 > common.out");
}

Can somone please point me to the correct syntax that is required for the system() command ?

Thanks

rogers42


 
system("comm -12 "file1" "file2" > common.out");

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
rogers24 said:
This is an emmense help.

That is what the purple stars are for...

Just click on the link in PHV's post in the lower left corner with the text "Thank PHV for this valuable post!"

And then click again to confirm

p5
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top