0

I have a find command that gives the list of files that are older than 5 days, i can tee it into a text file.

find . -type f -mtime +5 -ls | tee $dir/new.txt

Now i want to send this text file to a remote server into a dir. How do i do that.

1 Answer 1

0

I got what i wanted using this:

find  . -type f -mtime +5 -ls | ssh remoteuser@remoteserver "cat >> $dir/new1.txt"
0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.