Changes between Version 1 and Version 2 of Csle2022/Agenda/linuxfilters
- Timestamp:
- Nov 21, 2022, 7:39:47 AM (2 years ago)
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 == 4 4 5 5 The 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. … … 34 34 35 35 36 == == grep ====36 == grep == 37 37 38 38 The 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). … … 91 91 `$grep -R [Search] [directory]` 92 92 93 == == sed ====93 == sed == 94 94 95 95 SED 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. … … 178 178 `$ sed '/abc/d' filename.txt` 179 179 180 == == awk ====180 == awk == 181 181 182 182 Awk 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.