copy newest files to another directory via ssh [closed] - ssh

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to copy the files that were created during the last 3 days from one directory to another.
I'm using the command find . -mtime -3 to list the latest files but how do I copy then to another directory?
Thanks!

This answer should help you
find . -mtime -3 -exec cp {} /destinationfolder \;

Related

How can I copy a folder with files to a FTP folder using VBA? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How can I copy a folder with files to a FTP folder using VBA? It is the same as copying a file anywhere?
Here's a good guide on how to do this
http://officetricks.com/ftp-server-file-transfer-with-excel-macro/

SSH replace string example [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I need to replace multiple (150+) config.php files on live server that contain string
public_html/home2/cpaneluser
to
public_html/home/cpaneluser
can someone give me an example of SSH string replace please.
if you can give me an example of replacing ONE and replacing multiple please .
thank you!
Use sed. This has not specific to ssh, which is just a way to login to a remote server.
sed -i.bak 's|public_html/home2/cpaneluser|public_html/home/cpaneluser|' file1 file2 ...
You say there are 150+ files. You can use find to find them and pass them to the command:
find <topdir> -name config.php -exec sed -i.bak 's|public_html/home2/cpaneluser|public_html/home/cpaneluser|' {} +

SSH batch remove characters from filename [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have a folder with thousands of files and I need to rename only some of those files and remove a set of characters. Can anyone tell me which command to use from shell (putty)?
I have something like:
image01-GB.jpg
image02-GB.jpg
image03.jpg
image04GB.jpg
image05.jpg
image06GB.jpg
I need to remove -GB and GB if those characters exist, everything else should stay as is. I've been googling for the past 2 hours and can't find anything useful. Can anyone shed some light, please? BTW, I'm a total noob when it comes to shell.
I think you might be looking for the rename command.

Are amazon s3 folders browsable? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a little cloud api based on amazon which uploads a file with a 20 chars random title.
This file is public, but can anyone access it without knowing the filename?
Example: amazonurl.com/mybucket/myfolder/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx.txt
Can someone browse mybucket or myfolder and access the file anyway?
Thanks.
No, S3 does not autogenerate an index.html as some webservers do. You need to explicitly define the file you are referencing to access it.

Accurev's "show" Command : "-t" flag does not work [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
On the command line in Windows, I'm tring to run:
accurev show -p <myDepotName> -t 2011/11/09 13:26:19 streams
After I enter this command, the accurev help just prints out for accurev show.
Please advise me on how to use the accurev show command.
You need to enclose the -t argument in quotes -
accurev show -p <myDepotName> -t "2011/11/09 13:26:19" streams