This article is part of the on-going Awk Tutorial and Examples series. Like any other programming languages, Awk also has user defined variables and built-in variables. In this article let us review how to define and use awk variables. Awk variables should begin with the letter, followed by it can consist of alpha numeric characters [...]
Linux
One of the many great things about using UNIX or a UNIX-like operating system is the ability to tailor your environment to your liking. If you want a full-fledged GUI with all the bells and whistles then Gnome, KDE, or LXDE are probably for you. But, if you want something less resource intensive that offers [...]
I’m happy to announce that my free eBook, Linux 101 Hacks is now available for online browsing in HTML format. I’ve also updated the book with the following minor changes. Added “Chapter 13. Bonus Hacks” with 10 additional hacks. I’ll be adding more Linux hacks to this chapter in the upcoming editions. Made few minor [...]
We have seen in a previous awk introduction article that awk can be an effective tool for everything from small one-liners up through some interesting applications. There are certainly more complex languages at our disposal if a situation calls for it; perl and python come to mind. Applications requiring networking support, database access, user interfaces, [...]
If you are a Linux sysadmin who writes occasional perl code (or) a developer who wants to learn perl program language, these 20 basic perl programming tips and tricks explained in this article will give you a jumpstart. 1. List all Installed Perl Modules from Unix Command Line Get a list of all installed perl [...]
This is the first article on the new awk tutorial series. We’ll be posting several articles on awk in the upcoming weeks that will cover all features of awk with practical examples. In this article, let us review the fundamental awk working methodology along with 7 practical awk print examples. Note: Make sure you review [...]
This article is part of the on-going 15 example series where 15 examples will be provided for a specific command or functionality. In this series, earlier we discussed about find command, crontab examples, grep command, history command, ping command, and wget examples. In this article, let us review 15 examples for Linux top command that [...]
Question: How do I send an email with attachment from Linux command-line (or shell script)? Also, can I send both attachment and body text together in an email from Linux command-line? Answer: You can send both attachment and body text (or just the attachment with a subject line) from Linux command line as explained below. [...]