Open in app
Mir Adnan
15 Followers
About

Sign in

15 Followers
About
Open in app

How to get day of week with shell script / bash

Mir Adnan

Mir Adnan

May 3, 2019·1 min read

Localized day of week :

#!/bin/sh
DOW=$(date +"%a")
echo $DOW

In English

#!/bin/sh
LANG=C DOW=$(date +"%a")
echo $DOW

Written by

Mir Adnan

Product Lead at StegoSOC

  • Shell
  • Linux
  • Bash

More from Mir Adnan

Product Lead at StegoSOC

More From Medium

3 Uncommon Bash Tricks That You Should Know

Adam Green in Better Programming

Bashing Python Builds

dynamic-python-developer in Python In Plain English

Setting Up A Multinode RabbitMQ Cluster On Linux

Agustinus Theodorus in Bina Nusantara IT Division

3 Ways To Run Your Favorite Windows Software On Linux

Vega D in Linux For Everyone

35 unforgettable images that capture Trump’s wild and bitter presidency

Business Insider in Business Insider

Armie Hammer Has Been Accused Of Being Into Cannibalism

Carrie Wynn in Fearless She Wrote

I’ll Never Be a Chief Technology Officer Again… Unless It’s for My Own Company

James Williams in The Innovation

This Is What It Will Take For Bitcoin To Reach $100,000

Concoda in Concoda

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store