LinuxQuestions.org
Review your favorite Linux distribution.
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, 02:13 PM   #16
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 5,974
Blog Entries: 3

Rep: Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103

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 02:15 PM.
 
Old 12-29-2016, 07: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-20-2009 12:36 AM
Add Date (day) to Filename greengrass Programming 1 01-15-2007 07:48 PM
How do I add the current date to a filename? sammysrefuge Linux - Newbie 2 03-18-2005 03:43 PM
Script add date to filename amphion Linux - Newbie 2 06-02-2004 08:12 AM
how to add date to filename x2000koh Programming 1 07-08-2003 10:44 PM

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

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