This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
labs:bash [2016/03/07 16:43] pbrandes |
labs:bash [2020/08/31 21:03] (current) |
||
|---|---|---|---|
| Line 38: | Line 38: | ||
| - Write every line that contains ''import '' (note the space), but not ''bitcoinj'' in the folder src/core in a file called ''all_the_imports.txt''. | - Write every line that contains ''import '' (note the space), but not ''bitcoinj'' in the folder src/core in a file called ''all_the_imports.txt''. | ||
| - Count the total number of lines that contain "import" in every java file in src/core and write it into ''importLine.txt'' | - Count the total number of lines that contain "import" in every java file in src/core and write it into ''importLine.txt'' | ||
| - | - You know now how many lines there are. But you (should have) noticed that quite a few lines appear more than once. Which line appears the most? Write this line (without spaces) into ''mostImported.txt''. | + | - You know now how many lines there are. But you (should have) noticed that quite a few lines appear more than once. Which line appears the most? Write this line (without spaces in the beginning) into ''mostImported.txt''. |
| - The file ''allSrc.txt'' (in the folder src) contains a list of files. Write every line of these files that contain the word ''static'' into the file ''static.txt''. | - The file ''allSrc.txt'' (in the folder src) contains a list of files. Write every line of these files that contain the word ''static'' into the file ''static.txt''. | ||