Linux Lite Forums

Development => Scripting and Bash => Topic started by: Mike on January 07, 2018, 02:12:48 PM

Title: Ten Things I Wish I’d Known About bash
Post by: Mike on January 07, 2018, 02:12:48 PM
Good blog post by Ian Miell that I stumbled upon.

https://zwischenzugs.com/2018/01/06/ten-things-i-wish-id-known-about-bash/ (https://zwischenzugs.com/2018/01/06/ten-things-i-wish-id-known-about-bash/)

Here's one of his tips:
Quote
Have you ever done something like this?
$ grep somestring file1 > /tmp/a
$ grep somestring file2 > /tmp/b
$ diff /tmp/a /tmp/b
That works, but instead you can write:
diff <(grep somestring file1) <(grep somestring file2)
Isn’t that neater?
Title: Re: Ten Things I Wish I’d Known About bash
Post by: Moltke on January 07, 2018, 09:07:04 PM
Good post that one! Bookmarked! :) I've been also reading about scripting lately, trying to learn the basics. I came across this site https://www.cheatography.com/explore/tags/  which has a lot of "cheat sheets" and I've been reading here too https://www.codecademy.com/