.. (לתיקייה המכילה) | ||
Regarding the "PATH": How should I execute my scripts? | |
Both ways will be ok. You can write ./myScript as well as myScript. |
What is the "file name" I need to print in the following error messages: | |
You should print the full name of the argument that illegal. Examples: ./validate mtm3/exists/foo mtm3/exists/foo not found ./validateFile mtm3/exists.user mtm3/exists.user is not a file Please note that the requirement of "file name" in errors number 1-5 is different. See the following question. |
In validatFile and validate: | |
Just in the error message, the field <file name> represents the name, and not the pull path. for example: given input file ./mtm3/gal.user At error message only gal.user will be printed as the <file name> |
Can I assume that in the field "date" the characters between all the "/" will be only numbers? | |
Yes, you are. |
In section 2.6.5 | |
Yes. You should print: Efrat_Lecker and omer_s have 0 photos in Party album. |
In section 2.6 | |
Yes, you are. |
In section 2.4: | |
Nothing! You should treat only to the first argument. (and ignore from all the arguments). |
In section 2.5: | |
You Should print the first user name that dont have a file and return from the script. |
In section 2.4 -photogenicFriend. | |
Yes, you can. The only error which can be is "Missing argument". |
In 2.4 photogenicFriend | |
In case you have the same number of common photos in different "know_from" the inner order should be: [O,W,A,F,S] When "O" is the first one. Example: Amir 09/01/2011 S 89 sharon 02/07/200 A 89 output should be: A sharon 89 pini S Amir 89 pini |
In section 2.5 , reorganizeByList: | |
the output should be at most 5 files only if the user list argument is legal means that each user has a file The lines you should write are the only one from the output lines of photogenicFriend, which related to users that apear at the given list argument. Now, you just need to dive the relevent lines to files according to "know from" and keep the origen order as they were at "photogenicFriend". |
(2.5) Can you give an example output for reorganizeByList ? | |
The output of photogenicFriend: O omri 29 assaf A moshe 9 assaf S alex 2 assaf A sharon 89 yaniv reorganizeByList Output will be a dir FaceB_ contains 3 files: O.know,S.know and A.know. A.know content will be: moshe assaf 9 //since moshe apears first at photogenicFriend's output sharon yaniv 89 |
Can I use commands we didn't learn/see during the course? | |
No, you can't. (except for the specific commands: tr, return, break,continue,exit). We will run automatically tests for detecting usage of illegal commands. |
Can I use the command exit in my script? | |
Yes, you can. |
Can I use temporary files? | |
No, you can't. The only files you should create (they are not temporary!) are the required output files in reorganizeByList. |
Can I assume that the input files contain an empty line at the end? | |
Yes. For your notice, when writing directly on Unix, automatically an empty line is been added. However when writing in Windows (before you transfer it to Unix), you need to add an empty line by your self. Relevant for scripts and input files as well. |
In section 2.4 -photogenicFriend | |
You should print the friend that declared first in the origin user file. |
In ValidateFile, | |
All lines contain 4 fields is relevant. |
In ValidateFile and validate, regarding error number 5 | |
Exactly once. For the file example.user contains: efrat 11/02/1956 S 8 efrat 11/02/1956 F 78 efrat 11/02/1956 S 2 You should print : example Already have friend named efrat |
In validate in which order should we print error number 5? | |
You should print error number 5 after all the other errors. Errors number 5 is sorted by the <friend name>. (Not divided to files) In case you have 2 users having the same friend name that appears more than once, the user you checked first will be printed first. |
In section 2.6.5 | |
Yes,it is. The command line should be: CommonPhotos Party.album Efrat_Lecker omer_s |
In section 2, the space in the file name: Efrat Lecker.user is a mistake? | |
Yes, there is no spaces in the <user name> file. It should be Efrat_Lecker.user |
In section 2.4 the output example and the instructions don't match. | |
Each line in the output should be in the format: <know name> <friend name> <common photos #> <user name> (according to the example output) Notice that the <user name> in line number 1 should be Efrat_Lecker and not Efrat Lecker ) |
in section 2.4.1 it has been written that "user name" doesn't contain the char "_" | |
It is a mistake in the instructions. <user name> can contain the char "_" !!! |
In error number 3, there is a double space after the char ":" | |
No, you should print only 1 space after ":" |