Operating Systems Week 3
This week we delved into many things, however what was most interesting to me was learning about programs used in shell scripting. Throughout my time using Linux and doing other programming activities I've been familiar with regex, grep, sed, and awk. I would mostly use them after reading documentation where it was listed. Though I've never actually had and understanding of what each of these programs do, and how powerful they really are. One program in particular that I use a lot and never knew its true function is grep. Given a string, grep will print out all lines in a file or output that contain the string in it. Options such as -i and -v can be provided to match regardless of casing, or to get the lines not including the provided string. When I'm debugging my virtual machines and containers I often use the command "netstat -tulpn | grep LISTEN" to check if ports are open and listening. I didn't realize how useful the grep command was until I removed it and saw the output.
Comments
Post a Comment