Skip to content
Snippets Groups Projects
Commit 4c7d8eef authored by vk392's avatar vk392
Browse files

"Commiting the file with answer back into the folder."

This reverts commit 217e51e6.
parent 217e51e6
No related branches found
No related tags found
No related merge requests found
lab2 0 → 100644
Answer 1:' find -mtime' is used to list all files in the current directory
Answer 2:You can use the command 'find . | grep .bash'
Answer 3:'./Lab/lab02/tmp/gotMe.bash' It shows the files which contain the word .bash in their filename. It also shows the exact location(path name) in the directory in which this file is lcoated.
Answer 4: 97(characters) 499(words) 2960(lines)
Answer 5: 'grep -wc "the" breadIsDangerous.txt' There are 7 lines that contain the string "the" in in this text file.
Answer 6: It changed the name of the file to 'spellExample.bak'
Answer 7: Shows the differences between the two files, like certain words such as 'brunch'
Answer 8: There is no difference between the two files hence there is nothing to be seen in this output.
Answer 9:du -a |sort -n -r| head -n 8
Answer 10: grep dough breadIsDangerous.txt
echo $? = 0
grep uniqueString breadIsDangerous.txt
echo $?= $
type grep dough noSuchFile
type echo $?= 2
Asnwer 11:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment