LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2016, 01:13 PM   #16
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,294
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719

Quote:
Originally Posted by trickydba View Post
I need to figure out how to send files with appended dates
You can use globbing:

Code:
scp AUDITS_????????.xlsx user@remotehost.example.com:/some/path/destination/.
Each ? stands for a single character.

Or you can do tricks with date

Code:
scp AUDITS_$(date -d yesterday +"%Y%m%d").xlxs user@remotehost.example.com:/some/path/destination/.
By the way, can your system generate OpenDocument Format spreadsheets (.ods) instead? They are more portable and will withstand the tests of time. So if you have to store the data for many years, you'll save over time.

Last edited by Turbocapitalist; 12-15-2016 at 01:15 PM.
 
Old 12-29-2016, 06:42 AM   #17
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
I have already appended the dates to the files and stored the files in a folder named with the current date. Now all I need to do is move the folder from linux to a windows shared folder.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LInux Script to add date to a filename? your_shadow03 Linux - Newbie 2 10-19-2009 11:36 PM
Add Date (day) to Filename greengrass Programming 1 01-15-2007 06:48 PM
How do I add the current date to a filename? sammysrefuge Linux - Newbie 2 03-18-2005 02:43 PM
Script add date to filename amphion Linux - Newbie 2 06-02-2004 07:12 AM
how to add date to filename x2000koh Programming 1 07-08-2003 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08: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