http://qxr2st5oqf3pvxxgccy4qn3ybsrtpp4sh3bafvxsrzzbmfw76cqoghid.onion/2021/10/30/useful-linux-commands
Unlike tr, sed can search and replace for more specific strings rather than simply converting all instances of a character in the text. sed ‘s/pattern_to_find/pattern_to_replace/g’ input_file.txt cut - extract specified sections (columns) by cutting them based on delimiter. cut -d ' ' -f1,3,6 access.log - delimiter is space, and we want to display columns from 1 to 3. cut -d ' ' -f3 access.log | sort | uniq -c - list by 3rd column, remove, sort alphabetically, removes duplicates and counts of each. nl -...