How do I display file modification time (linux) as âNov 8 12:00â format?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
The format I want is "Nov 8 12:00". It is the format you get by doing ls -l command. It is month, day of the month, hour and minute.
I tried stat -c %Y filename which gives time of last data modification, seconds since Epoch and I tried date -d @resultFromStat. It gives me unnecessary extra output like below.
Fri Feb 13 16:31:30 PST 2009
linux bash shell-script
New contributor
Saurav Bhuju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
favorite
The format I want is "Nov 8 12:00". It is the format you get by doing ls -l command. It is month, day of the month, hour and minute.
I tried stat -c %Y filename which gives time of last data modification, seconds since Epoch and I tried date -d @resultFromStat. It gives me unnecessary extra output like below.
Fri Feb 13 16:31:30 PST 2009
linux bash shell-script
New contributor
Saurav Bhuju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What command? You do not say what command/programming language etc you are using. Please edit question to make it clear.
â ctrl-alt-delor
58 secs ago
Possible duplicate of Get file modification time in yyyymmddhh24miss format
â don_crissti
15 secs ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
The format I want is "Nov 8 12:00". It is the format you get by doing ls -l command. It is month, day of the month, hour and minute.
I tried stat -c %Y filename which gives time of last data modification, seconds since Epoch and I tried date -d @resultFromStat. It gives me unnecessary extra output like below.
Fri Feb 13 16:31:30 PST 2009
linux bash shell-script
New contributor
Saurav Bhuju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
The format I want is "Nov 8 12:00". It is the format you get by doing ls -l command. It is month, day of the month, hour and minute.
I tried stat -c %Y filename which gives time of last data modification, seconds since Epoch and I tried date -d @resultFromStat. It gives me unnecessary extra output like below.
Fri Feb 13 16:31:30 PST 2009
linux bash shell-script
linux bash shell-script
New contributor
Saurav Bhuju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Saurav Bhuju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited just now
ctrl-alt-delor
9,38331949
9,38331949
New contributor
Saurav Bhuju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 6 mins ago
Saurav Bhuju
1
1
New contributor
Saurav Bhuju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Saurav Bhuju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Saurav Bhuju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What command? You do not say what command/programming language etc you are using. Please edit question to make it clear.
â ctrl-alt-delor
58 secs ago
Possible duplicate of Get file modification time in yyyymmddhh24miss format
â don_crissti
15 secs ago
add a comment |Â
What command? You do not say what command/programming language etc you are using. Please edit question to make it clear.
â ctrl-alt-delor
58 secs ago
Possible duplicate of Get file modification time in yyyymmddhh24miss format
â don_crissti
15 secs ago
What command? You do not say what command/programming language etc you are using. Please edit question to make it clear.
â ctrl-alt-delor
58 secs ago
What command? You do not say what command/programming language etc you are using. Please edit question to make it clear.
â ctrl-alt-delor
58 secs ago
Possible duplicate of Get file modification time in yyyymmddhh24miss format
â don_crissti
15 secs ago
Possible duplicate of Get file modification time in yyyymmddhh24miss format
â don_crissti
15 secs ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Saurav Bhuju is a new contributor. Be nice, and check out our Code of Conduct.
Saurav Bhuju is a new contributor. Be nice, and check out our Code of Conduct.
Saurav Bhuju is a new contributor. Be nice, and check out our Code of Conduct.
Saurav Bhuju is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479786%2fhow-do-i-display-file-modification-time-linux-as-nov-8-1200-format%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What command? You do not say what command/programming language etc you are using. Please edit question to make it clear.
â ctrl-alt-delor
58 secs ago
Possible duplicate of Get file modification time in yyyymmddhh24miss format
â don_crissti
15 secs ago