Hello All,
I am trying to create a unix script in SOLARIS that will do the following:
1) find all file in this directory that has non-zero size.
2) the result from 1) should be newer than file_z
3) tar the resulting files from 2) into a tarball
4) send the resulting tarball from 3) to a recipient
Here is my effort that does not work. Please advise on what I am doing wrong.
#!/bin/sh
find . -type f ! -size 0 | find . -type f –newer file_z –print
tar -cvzf mysendfiles.tar.gz * | mail -s ‘file counts’george.goldenberg@ezee.com
I am trying to create a unix script in SOLARIS that will do the following:
1) find all file in this directory that has non-zero size.
2) the result from 1) should be newer than file_z
3) tar the resulting files from 2) into a tarball
4) send the resulting tarball from 3) to a recipient
Here is my effort that does not work. Please advise on what I am doing wrong.
#!/bin/sh
find . -type f ! -size 0 | find . -type f –newer file_z –print
tar -cvzf mysendfiles.tar.gz * | mail -s ‘file counts’george.goldenberg@ezee.com