GeekInterview.com
Series: Subject: Topic:
Question: 12 of 236

How many input files?

With open a graph how should we know how many input files are using in that graph?
Asked by: Interview Candidate | Asked on: Sep 24th, 2011
Showing Answers 1 - 1 of 1 Answers

there is one air command that can help you -

air project get-required-file == This command finds and displays the files in a project that the specified object(s) depends on. This command is branch-specific.

suppose u have graph ABC.mp. so to find the number of input datasets(IP files/IP tables..etc) using by the ABC.mp u can do the following ->

air project get-required-file /Projectname/mp/ABC.mp > ListofInputfiles.dat /* This wil save list of input files in file ListofInputfiles.dat */
cat ListofInputfiles.dat | wc -l /* It will give the count of input datasets required by the graph */

Cheers,
Puneet

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.