Changes between Version 1 and Version 2 of Csle2022/Agenda/linuxfilters


Ignore:
Timestamp:
Nov 21, 2022, 7:39:47 AM (2 years ago)
Author:
deepthi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/linuxfilters

    v1 v2  
    1 == Filters - find, grep, sed and awk ==
    2 
    3 ==== find ====
     1= Filters - find, grep, sed and awk =
     2
     3== find ==
    44
    55The find command in UNIX is a command line utility for walking a file hierarchy. It can be used to find files and directories and perform subsequent operations on them. It supports searching by file, folder, name, creation date, modification date, owner and permissions. By using the ‘-exec’ other UNIX commands can be executed on files or folders found.
     
    3434
    3535
    36 ==== grep ====
     36== grep ==
    3737
    3838The grep filter searches a file for a particular pattern of characters, and displays all lines that contain that pattern. The pattern that is searched in the file is referred to as the regular expression (grep stands for global search for regular expression and print out).
     
    9191`$grep -R [Search] [directory]`
    9292
    93 ==== sed ====
     93== sed ==
    9494
    9595SED is a text stream editor used on Unix systems to edit files quickly and efficiently. The tool searches through, replaces, adds, and deletes lines in a text file without opening the file in a text editor.
     
    178178`$ sed '/abc/d' filename.txt`
    179179
    180 ==== awk ====
     180== awk ==
    181181
    182182Awk is a scripting language used for manipulating data and generating reports. The awk command programming language requires no compiling and allows the user to use variables, numeric functions, string functions, and logical operators.