find -ctime -1 cannot find files without extention

The problem is this one. I tar and gzip files on remote server

find . -ctime -1 | tar -cvf transfer_dmz_start_daily.tar *${Today}*.*;

Command

find . -ctime -1 
 

Doesn't find files without extension

.csv .txt 
 

I have to collect all files for current day, when the program starts at 11:30 PM EST

thanks for contrinution

---------- Post updated at 12:27 PM ---------- Previous update was at 12:25 PM ----------

I think it does.
But your tar does not read from the pipe, it takes the arguments which require a dot.
Without the dot, and without the pipe

tar -cvf transfer_dmz_start_daily.tar *${Today}*

assuming that Today is a correctly set shell variable.
If you want to use the output from find:

Todayfiles=`find . -ctime -1`
if [ -n "$Todayfiles" ]
then
  tar -cvf transfer_dmz_start_daily.tar $Todayfiles
fi
1 Like