Main menu

Skip to primary content
Skip to secondary content
  • Blog
  • About

John's blog

Talking about technology (mostly)

Tag Archives: bash

Post navigation

← Older posts

Bash Scripting Techniques

Posted on 2022-03-03 [Thursday] by jj5
Reply

This in my feed today: 5 Modern Bash Scripting Techniques That Only A Few Programmers Know.

Posted in Programming, Sys Admin | Tagged bash, scripting | Leave a reply

How to write idempotent Bash scripts

Posted on 2022-02-12 [Saturday] by jj5
Reply

This is great: How to write idempotent Bash scripts. Some highlights for me were `blkid` and `mountpoint`.

Posted in Sys Admin | Tagged bash, blkid, idempotent, mountpoint | Leave a reply

Shell Functions

Posted on 2021-07-25 [Sunday] by jj5

Today in #lobsters I was referred to the GNU doco for Shell Functions.

Posted in Programming | Tagged bash, shell

Bash locals

Posted on 2021-07-24 [Saturday] by jj5

Today I learned about options for the ‘local‘ keyword in bash scripts, include ‘-r’ for ‘readonly’.

Posted in Programming | Tagged bash, local, options, readonly

Safer Bash: avoid nesting

Posted on 2021-07-22 [Thursday] by jj5

Over on Safer Bash: avoid nesting I learned that extracting complex expressions to a named variable is a good idea so as to help catch error conditions.

Posted in Chatter | Tagged bash, safety

Cool Bash

Posted on 2021-06-19 [Saturday] by jj5

Today via lobsters: Cool things I learned about Bash this week.

Posted in Programming, Sys Admin | Tagged bash

Modulinos In Bash

Posted on 2021-06-17 [Thursday] by jj5

Via Hacker News today: Modulinos In Bash. “A modulino is a file which behaves like a library when it is imported, and like a script when executed.”

Posted in Programming | Tagged bash, file, library, modulino, script

The Bourne shell and Bash aren’t the right languages for larger programs

Posted on 2021-05-16 [Sunday] by jj5

Today I read The Bourne shell and Bash aren’t the right languages for larger programs. It linked to this DKMS script which was interesting. TIL: ‘readonly’ in BASH.

Posted in Chatter, Programming, Sys Admin | Tagged bash, bourne shell, readonly, Turing tarpit

Elegant bash conditionals

Posted on 2021-03-03 [Wednesday] by jj5

Some discussion concerning Elegant bash conditionals. Personally I use both forms, variously.

Posted in Chatter, Programming | Tagged bash, conditionals, elegant

Easiest guide to .bashrc

Posted on 2021-02-08 [Monday] by jj5

An intro to bash: Easiest guide to .bashrc. I particularly liked this one:

var() {
  eval "export $1=\"$2\""
}

Dangerous, but cool.

Posted in Programming, Sys Admin | Tagged .bashrc, bash, introduction

Post navigation

← Older posts

Archives

  • March 2023 (34)
  • February 2023 (50)
  • January 2023 (20)
  • December 2022 (19)
  • November 2022 (42)
  • October 2022 (43)
  • September 2022 (62)
  • August 2022 (23)
  • July 2022 (18)
  • June 2022 (32)
  • May 2022 (24)
  • April 2022 (10)
  • March 2022 (30)
  • February 2022 (20)
  • January 2022 (15)
  • December 2021 (27)
  • November 2021 (29)
  • October 2021 (25)
  • September 2021 (17)
  • August 2021 (41)
  • July 2021 (36)
  • June 2021 (21)
  • May 2021 (35)
  • April 2021 (34)
  • March 2021 (55)
  • February 2021 (49)
  • January 2021 (26)
  • December 2020 (13)
  • November 2020 (27)
  • October 2020 (25)
  • September 2020 (13)
  • August 2020 (12)
  • July 2020 (19)
  • June 2020 (16)
  • May 2020 (4)
  • April 2020 (1)
  • March 2020 (1)
  • February 2020 (1)
  • January 2020 (1)
  • October 2019 (1)
  • August 2019 (2)
  • July 2019 (2)
  • June 2019 (5)
  • March 2019 (1)
  • December 2018 (1)
  • September 2018 (1)
  • August 2018 (3)
  • July 2018 (5)
  • February 2018 (1)
  • December 2017 (1)
  • November 2017 (3)
  • August 2017 (3)
  • July 2017 (3)
  • June 2017 (1)
  • May 2017 (14)
  • April 2017 (2)
  • March 2017 (7)
  • February 2017 (3)
  • January 2017 (1)
  • December 2016 (5)
  • October 2016 (2)
  • September 2016 (1)
  • July 2016 (4)
  • June 2016 (5)
  • May 2016 (5)
  • April 2016 (11)
  • March 2016 (2)
  • January 2016 (1)
  • October 2015 (1)
  • September 2015 (8)
  • August 2015 (14)
  • July 2015 (3)
  • June 2015 (9)
  • May 2015 (6)
  • April 2015 (4)
  • March 2015 (6)
  • February 2015 (2)
  • January 2015 (8)
  • December 2014 (9)
  • November 2014 (17)
  • October 2014 (7)
  • September 2014 (5)
  • August 2014 (13)
  • July 2014 (21)
  • June 2014 (22)
  • May 2014 (55)
  • April 2014 (19)
  • February 2014 (1)
  • November 2013 (2)
  • October 2013 (7)
  • September 2013 (7)
  • August 2013 (12)
  • July 2013 (16)
  • November 2012 (24)
  • October 2012 (40)
  • September 2012 (7)
  • August 2012 (9)
  • July 2012 (14)
  • May 2012 (1)
  • April 2012 (9)
  • March 2012 (29)
  • February 2012 (60)
  • January 2012 (96)
  • December 2011 (29)
  • November 2011 (3)
  • October 2011 (8)
  • September 2011 (25)
  • August 2011 (40)

Categories

  • Art (4)
  • Asset (1)
  • Book (18)
  • Business (13)
  • Chatter (300)
  • Cloud (9)
  • Data (29)
  • Database (34)
  • Design (165)
  • Diary (4)
  • Electronics (202)
  • Games (5)
  • Hall of Fame (1)
  • Hardware (47)
  • Homework (5)
  • Internet (190)
  • Learning (3)
  • Mathematics (21)
  • Music (8)
  • Notes (10)
  • Philosophy (86)
  • Privacy (1)
  • Programming (761)
  • Reading (4)
  • Science (4)
  • Sys Admin (535)
  • Testing (3)
  • TODO (60)
  • Tribute (4)
  • Vocabulary (7)
  • Web (108)
  • Wishlist (5)
  • Writing (15)
  • Xbox (19)

Recent Posts

  • hostinfo.sh
  • moreutils: ts
  • Dumb to managed switch conversion
  • The Secret to Raising Smart Kids
  • The Six Dumbest Ideas in Computer Security
March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Feb    

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Tags

apache api bash c++ code command line css data database debian design disable error file firefox google HTML html5 http https install javascript kde lab linux mariadb mediawiki mysql password pcphpjs performance php postfix progclub programming size software ssh ssl svn ubuntu unicode vim web zfs
Powered by WordPress