LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-31-2021, 10:35 PM   #1
asalford
Member
 
Registered: Nov 2003
Location: NC, USA
Distribution: unbuntu breazy
Posts: 143

Rep: Reputation: 15
Arlo file names in Unix time


I have a very bad neighbor! I have to use these captured files in an ongoing court issue with him shooting my animals with a pellet rifle. I would like to convert the files names from say 1617045279541 to something readable like 2021.03.29.17.30.19 which is year 2021, month of march, 29th day 17 hour 30th minute, and 19 seconds. I would love to have a bash rename string to automatically perform this task so I can set it up in Cron to change the name of the file, modify the file creation and modification to the same value. Thank you in advance. I'm running ubuntu 20.04.2 LTS.

date -d @1617045279541
Wed 15 Feb 53212 03:19:01 PM EST

This is the incorrect result

Last edited by asalford; 03-31-2021 at 10:42 PM.
 
Old 03-31-2021, 11:48 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Get rid of the last 3 digits.
 
Old 04-03-2021, 10:42 AM   #3
mjolnir
Member
 
Registered: Apr 2003
Posts: 821

Rep: Reputation: 101Reputation: 101
Are these audio or video files you are capturing of your neighbor? What utility are you using to 'capture' them?

Edit: I see you are using an 'Arlo' camera, had to look it up.

Last edited by mjolnir; 04-03-2021 at 12:02 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Burning with cdw: file names are too long, try "Long Joliet file names" lucmove Linux - Software 3 02-21-2017 06:06 AM
Wi-fi Security Camera Review: Netgear Arlo vs D-Link Guardian DCS-2630L jeremy Linux - News 0 12-16-2015 03:28 PM
Bash: bash file names are different than openbox trash file names whatthefunk Programming 4 02-15-2011 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration