Command Line FU
Command Line FU Tips and Tricks
Use sed to replace last character after matching a line
If you are a coder like me we tend to discover after we have made a script that we need
Viewing contents of an open filehandle on a deleted file
There are times when you may unintentionally delete a file which is being written to. When this occurs it will
Cscope search results are invisible
Part of my ‘day job’ is trolling thru source code when looking for answers. My preferred mechanism, other than a
Display ethernet devices on a Fedora system using the Linux Pseudo Filesystem and create a static IP Address
Encountered a fun riddle recently whereby on a Fedora 34 system I needed to locate all ethernet interfaces on a
Downloading an RPM package including all of its dependencies on Fedora
There are times when you need to fully download an RPM and all of its dependencies. However, If you have
Remove any potential special characters or spaces from an IP address using AWK
Got stuck earlier in an interesting regex mystery and I command-line FU’d an AWK Solution. PROBLEM I want to strip
Using AWK to print N lines up until the FIRST MATCH of a string and then exit
Often you are looking for a keyword within a log file but you need to print out X lines BEFORE
Telnet to a port on a remote machine without ncat or telnet, or nmap
There are situations where you may be working on Linux based system, and telnet, ncat or nmap does not exist.
Include Line Numbers to bash set-x debug output
There are times you need to view the line numbers in a bash script to view script execution. Within bash
