The following syntax will list all lines in a file containing multiple keywords ‘println’ or ‘printStackTrace’ or ‘print’ in a file named “MyWork.java”
cat MyWork.java | grep ‘println\|printStackTrace\|print’
The following syntax will list all lines in a file containing multiple keywords ‘println’ or ‘printStackTrace’ or ‘print’ in a file named “MyWork.java”
cat MyWork.java | grep ‘println\|printStackTrace\|print’
See the status of the currently modified files as well as new files.
git status
Add all new files into git
git add -A
Verify that the files have been added
git status
Commit everything
git commit -a
To list the contents of a zip file use the following command:
unzip -vl a_zip_file.zip
To extract one single file from a zip file use the following command:
unzip -p a_zip_file.zip path/to/zipped/file.txt > file.txt