How to find the number of occurrence in the file?
Grep ‘Test lead’ filename.txt This command searches for all the occurrence of the text string “Test lead” in file “filename.txt” We can also use wildcard character to search in multiple files.
Grep ‘Test lead’ filename.txt This command searches for all the occurrence of the text string “Test lead” in file “filename.txt” We can also use wildcard character to search in multiple files.
Mv” command is used to move and rename the files. Ex: mv first1 first1.bad This command renames the file “first1” to the “first1.bad” Mv first1 mylocal This command renames the file “first1” to the new name “mylocal” Mv first1 /usr/my/tmp This command moves the file “first1” in to the directory named “usr/my/tmp”
Cp /usr/my/first12 This command copies the file “first12″
Cp .profiler . profiler.bak This command copies your “.Profiler”
The “cp” command is used to copy files and directories.
5 Jan 2021
27 Jan 2020
4 Dec 2013
4 Dec 2013
3 Dec 2013
3 Dec 2013
24 Nov 2013
1 Nov 2013
31 Oct 2013
30 Oct 2013