Posts tagged awk

awk Cheat Sheet

awk -v nr=N '{ for (x=nr; x<=NF; x++) {printf $x " "; }; print " " }'
Use awk to print from field N to the end of the line.

Linux Command-Line Cheat Sheet Posted

I have posted today my Linux Command-Line Cheat Sheet. Unlike other Linux Cheat Sheets I have seen, I have created this one as more of a “targeted” cheat sheet. Instead of just containing various command-line commands, my cheat sheet focuses on providing tips/tricks for various Linux commands including common switches and options used with those commands, including grep, sed, find, tar, rpm, and more.

I have also included numerous shortcuts/key combinations for the vi/vim text editor. This may turn into it’s own cheat sheet in the near future if I continue to add to it due to the amount of info I have for vi alone. Time will tell.
Read the rest of this entry »