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.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community