Let’s say you have a log file that is of your web traffic and you are collecting a lot of things including user agent strings; such as And let’s say you want to just get the user agent string in each connection and get a count or do something else with it. You can use…
Month: April 2019
AWK Functions
You can use AWK to convert a file to lowercase or uppercase. For example you can run to print out all of the content of the file but print it out as lowercase.
Unique Sort
I used to use the “uniq” command to get a unique count of output, usually after sort. However the command takes care of that for you!
Cut
cut can be used to pull out parts of a file. You can use many different options on how to parse it out. You can do it by character or by delimeter and more. For example would cut with the first field, as identified by the delimeter of a space.