Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

date

How to trick a particular command into thinking it is a different date?

August 10, 2022 by Magenaut

How can I execute a command making it believe that is on a different date than system one?

Categories Q&A, Unix & Linux Tags date, executable Leave a comment

How do I add X days to date and get new date?

August 10, 2022 by Magenaut

I have Linux ( RH 5.3) machine

Categories Q&A, Unix & Linux Tags bash, date, linux, shell-script Leave a comment

Date validation in shell

August 9, 2022 by Magenaut

I want to validate the below date format in shell script

Categories Q&A, Unix & Linux Tags date, shell-script Leave a comment

Why does man print “gimme gimme gimme” at 00:30?

August 9, 2022 by Magenaut

We’ve noticed that some of our automatic tests fail when they run at 00:30 but work fine the rest of the day. They fail with the message

Categories Q&A, Unix & Linux Tags date, man Leave a comment

Cron entry for last Saturday of every month

August 9, 2022 by Magenaut

I want to schedule my script for last Saturday of every month.
I have come up with the below:

Categories Q&A, Unix & Linux Tags cron, date Leave a comment

How does the “1 month ago” option in date command work?

August 9, 2022 by Magenaut

I’m not sure if this gets the past date within the current day or if it only takes 30 or 31 days to it.

Categories Q&A, Unix & Linux Tags coreutils, date Leave a comment

Extract date from a variable in a different format

August 8, 2022 by Magenaut

Let me explain you the problem

Categories Q&A, Unix & Linux Tags date, shell, string Leave a comment

Fast way to build a test file with every second listed in YYYY-mm-dd HH:MM:SS format

August 8, 2022 by Magenaut

I want to create a large test file with lines containg dates listed by the second, but my method is taking inordinately long… (or at least, that’s how it feels 🙂 … 43 minutes to create only 1051201 lines. 20.1 MB file….

Categories Q&A, Unix & Linux Tags bash, date, performance, text-processing Leave a comment

Bash – date, working around the 2038 bug on 32bit LINUX system

August 8, 2022 by Magenaut

I wrote a little bash script that made me stumble across the “Year 2038 Bug”. I did not know about this problem before and I just dare on posting the --debug output I got from date when my script tried to calculate across this magic date (03:14:07 UTC on 19 January 2038).

Categories Q&A, Unix & Linux Tags date, gnu, linux Leave a comment

Is it possible to reference the most recently modified file in a command line argument?

August 8, 2022 by Magenaut

I frequently download PDF files with heinous numeric file names from my browser. These automatically go into ~/Downloads. Ideally I would like to just be able to open these files with:

Categories Q&A, Unix & Linux Tags bash, command-line, date, files, wildcards Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … Page13 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress