User Tools

Site Tools


til_2021

2021-12-07

2021-11-18

2021-11-08

2021-11-05

2021-10-24

2021-10-23

2021-08-14

2021-07-27

2021-05-28

2021-05-17

2021-05-13

  • Use date +'%-M' to get the current minute without a leading zero (ex:- 8 instead of 08). Compare this with date +'%M' which pads it by 0 (ex:- 08 instead of 8).

Ref: https://unix.stackexchange.com/questions/79371/removing-leading-zeros-from-date-output

Use case: In https://github.com/KamarajuKusumanchi/.mycd/blob/master/mycd.sh, I needed a way to check if the current minute is in a given range. If the current minute is padded with zero then bash is interpreting it as an octal number which leads to problems if the current minute happens to be 08 which is not a valid octal number.

2021-04-23

2021-03-09

2021-02-22

2021-02-21

  • https://linux-hardware.org/ - a project to anonymously collect hardware details of Linux-powered computers over the world and help people to collaboratively debug hardware related issues, check for Linux-compatibility and find drivers.

2021-02-19

2021-01-10

2021-01-08

2021-01-03

til_2021.txt · Last modified: 2024/04/14 04:36 by raju