diff --git a/lab2 b/lab2 deleted file mode 100644 index 25d5614d66bcad98493ac1643bae800561233661..0000000000000000000000000000000000000000 --- a/lab2 +++ /dev/null @@ -1,28 +0,0 @@ -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: