cancel
Showing results for 
Search instead for 
Did you mean: 

moving files

himacs
Super Advisor

moving files

Hi All

m wanted to move files of particular date.
For eg: i want to move files of Jan 10.
i used below command
mv 'ls -lrt|grep 'Jan 10'|awk '{print$9}'' /backup
but it throws error sh: 9: Parameter not set.

Please help me on it.

Regards,
8 REPLIES
Hasan Atasoy
Honored Contributor

Re: moving files


hi

mv `ls -lrt|grep 'Jan 10'|awk '{print$9}'` /backup


Hasan
Steven Schweda
Honored Contributor

Re: moving files

"find" has date-time options, and won't be
confused by a file named "Not Jan 10.txt".
sujit kumar singh
Honored Contributor

Re: moving files

Hi,


i am not good at scripting but few thoughts if you get helped...

In the command that is given by you,

is

'ls -lrt|grep 'Jan 10'|awk '{print$9}''


lists the files of JAN 10?

just try check if there is some typing mistake is being made.

try a space between print and $9

'ls -lrt|grep 'Jan 10'|awk '{print $9}''

does this show the files of jan 10 correctly?

Regards
Sujit


himacs
Super Advisor

Re: moving files

Thanks Hasan..
its worked.
thanks once again...
Dennis Handly
Acclaimed Contributor

Re: moving files

And even better solution than Hasan's is to use $(), it's move visible:
mv $(ls -lrt | grep 'Jan 10' | awk '{print$9}') /backup
himacs
Super Advisor

Re: moving files

Hi
i want u list 15 days old files.Command i have used is #find . â mtime +15 â exec ls â lrt {} \+
It shows
-rw-r--r-- 1 oracle oinstall 325184 Dec 15 18:26 ./DOWNLOAD_IPM.TRC021.gz
-rw-r--r-- 1 oracle oinstall 328879 Dec 15 18:26 ./DOWNLOAD_IPM.TRC022.gz
-rw-r--r-- 1 oracle oinstall 322949 Dec 15 18:26 ./DOWNLOAD_IPM.TRC023.gz
-rw-r--r-- 1 oracle oinstall 49896 Dec 15 18:28 ./IPM_IN.560.gz
-rw-r--r-- 1 oracle oinstall 31781 Dec 15 18:28 ./IPM_IN.556.gz
-rw-r--r-- 1 oracle oinstall 46771 Dec 15 18:28 ./IPM_IN.558.gz
-rw-r--r-- 1 oracle oinstall 36031 Dec 15 18:28 ./IPM_IN.557.gz
-rw-r--r-- 1 oracle oinstall 48945 Dec 15 18:28 ./IPM_IN.559.gz
-rw-r--r-- 1 oracle oinstall 52216 Dec 15 18:28 ./IPM_IN.564.gz
-rw-r--r-- 1 oracle oinstall 52786 Dec 15 18:28 ./IPM_IN.565.gz
-rw-r--r-- 1 oracle oinstall 52480 Dec 15 18:28 ./IPM_IN.567.gz
-rw-r--r-- 1 oracle oinstall 52754 Dec 15 18:28 ./IPM_IN.569.gz
-rw-r--r-- 1 oracle oinstall 53034 Dec 15 18:28 ./IPM_IN.568.gz
-rw-r--r-- 1 oracle oinstall 51795 Dec 15 18:28 ./IPM_IN.566.gz
-rw-r--r-- 1 oracle oinstall 52555 Dec 15 18:28 ./IPM_IN.563.gz
-rw-r--r-- 1 oracle oinstall 50246 Dec 15 18:28 ./IPM_IN.561.gz
-rw-r--r-- 1 oracle oinstall 52530 Dec 15 18:28 ./IPM_IN.562.gz
-rw-r--r-- 1 oracle oinstall 47106 Dec 15 18:28 ./IPM_IN.572.gz
-rw-r--r-- 1 oracle oinstall 47270 Dec 15 18:28 ./IPM_IN.576.gz
-rw-r--r-- 1 oracle oinstall 48118 Dec 15 18:28 ./IPM_IN.573.gz
-rw-r--r-- 1 oracle oinstall 48437 Dec 15 18:28 ./IPM_IN.577.gz
-rw-r--r-- 1 oracle oinstall 48073 Dec 15 18:28 ./IPM_IN.575.gz
-rw-r--r-- 1 oracle oinstall 53134 Dec 15 18:28 ./IPM_IN.570.gz
-rw-r--r-- 1 oracle oinstall 48835 Dec 15 18:28 ./IPM_IN.574.gz
-rw-r--r-- 1 oracle oinstall 51929 Dec 15 18:28 ./IPM_IN.571.gz
-rw-r--r-- 1 oracle oinstall 48472 Dec 15 18:28 ./IPM_IN.582.gz
-rw-r--r-- 1 oracle oinstall 48448 Dec 15 18:28 ./IPM_IN.579.gz
-rw-r--r-- 1 oracle oinstall 48940 Dec 15 18:28 ./IPM_IN.578.gz
-rw-r--r-- 1 oracle oinstall 49371 Dec 15 18:28 ./IPM_IN.583.gz
-rw-r--r-- 1 oracle oinstall 48910 Dec 15 18:28 ./IPM_IN.581.gz
-rw-r--r-- 1 oracle oinstall 47201 Dec 15 18:28 ./IPM_IN.580.gz
-rw-r--r-- 1 oracle oinstall 47554 Dec 15 18:28 ./IPM_IN.585.gz
-rw-r--r-- 1 oracle oinstall 49171 Dec 15 18:28 ./IPM_IN.584.gz
-rw-r--r-- 1 oracle oinstall 62773 Dec 15 18:28 ./IPM_IN.588.gz
-rw-r--r-- 1 oracle oinstall 63721 Dec 15 18:28 ./IPM_IN.589.gz
-rw-r--r-- 1 oracle oinstall 62721 Dec 15 18:28 ./IPM_IN.587.gz
-rw-r--r-- 1 oracle oinstall 53435 Dec 15 18:28 ./IPM_IN.586.gz
-rw-r--r-- 1 oracle oinstall 63871 Dec 15 18:28 ./IPM_IN.590.gz
-rw-r--r-- 1 oracle oinstall 64423 Dec 15 18:28 ./IPM_IN.594.gz
-rw-r--r-- 1 oracle oinstall 60966 Dec 15 18:28 ./IPM_IN.592.gz
-rw-r--r-- 1 oracle oinstall 64928 Dec 15 18:28 ./IPM_IN.591.gz
-rw-r--r-- 1 oracle oinstall 65407 Dec 15 18:28 ./IPM_IN.593.gz
-rw-r--r-- 1 oracle oinstall 59927 Dec 15 18:28 ./IPM_IN.596.gz
-rw-r--r-- 1 oracle oinstall 53537 Dec 15 18:28 ./IPM_IN.595.gz
-rw-r--r-- 1 oracle oinstall 55319 Dec 15 18:28 ./IPM_IN.597.gz
-rw-r--r-- 1 oracle oinstall 55242 Dec 15 18:28 ./IPM_IN.599.gz
-rw-r--r-- 1 oracle oinstall 54546 Dec 15 18:28 ./IPM_IN.598.gz
-rw-r--r-- 1 oracle oinstall 63727 Dec 15 18:28 ./IPM_IN.600.gz
-rw-r--r-- 1 oracle oinstall 62958 Dec 15 18:28 ./IPM_IN.601.gz
-rw-r--r-- 1 oracle oinstall 54479 Dec 15 18:28 ./IPM_IN.602.gz
-rw-r--r-- 1 oracle oinstall 38738 Dec 15 18:28 ./IPM_IN.605.gz
-rw-r--r-- 1 oracle oinstall 31812 Dec 15 18:28 ./IPM_IN.604.gz
-rw-r--r-- 1 oracle oinstall 54462 Dec 15 18:28 ./IPM_IN.603.gz
-rw-r--r-- 1 oracle oinstall 39152 Dec 15 18:28 ./IPM_IN.606.gz
-rw-r--r-- 1 oracle oinstall 37273 Dec 15 18:28 ./IPM_IN.607.gz
-rw-r--r-- 1 oracle oinstall 39459 Dec 15 18:30 ./IPM_IN.610.gz
-rw-r--r-- 1 oracle oinstall 30786 Dec 15 18:30 ./IPM_IN.609.gz
-rw-r--r-- 1 oracle oinstall 34829 Dec 15 18:30 ./IPM_IN.608.gz
-rw-r--r-- 1 oracle oinstall 37678 Dec 15 18:30 ./IPM_IN.613.gz
-rw-r--r-- 1 oracle oinstall 41668 Dec 15 18:30 ./IPM_IN.612.gz
-rw-r--r-- 1 oracle oinstall 46934 Dec 15 18:30 ./IPM_IN.611.gz
-rw-r--r-- 1 oracle oinstall 52246 Dec 15 18:30 ./IPM_IN.617.gz
-rw-r--r-- 1 oracle oinstall 42153 Dec 15 18:30 ./IPM_IN.616.gz
-rw-r--r-- 1 oracle oinstall 34022 Dec 15 18:30 ./IPM_IN.614.gz
-rw-r--r-- 1 oracle oinstall 30712 Dec 15 18:30 ./IPM_IN.615.gz
-rw-r--r-- 1 oracle oinstall 53289 Dec 15 18:30 ./IPM_IN.619.gz
-rw-r--r-- 1 oracle oinstall 48813 Dec 15 18:30 ./IPM_IN.628.gz
-rw-r--r-- 1 oracle oinstall 51043 Dec 15 18:30 ./IPM_IN.624.gz
-rw-r--r-- 1 oracle oinstall 52796 Dec 15 18:30 ./IPM_IN.620.gz
-rw-r--r-- 1 oracle oinstall 52648 Dec 15 18:30 ./IPM_IN.621.gz
-rw-r--r-- 1 oracle oinstall 52939 Dec 15 18:30 ./IPM_IN.618.gz
-rw-r--r-- 1 oracle oinstall 48664 Dec 15 18:30 ./IPM_IN.625.gz
-rw-r--r-- 1 oracle oinstall 48740 Dec 15 18:30 ./IPM_IN.627.gz
-rw-r--r-- 1 oracle oinstall 48500 Dec 15 18:30 ./IPM_IN.626.gz
-rw-r--r-- 1 oracle oinstall 52940 Dec 15 18:30 ./IPM_IN.623.gz
-rw-r--r-- 1 oracle oinstall 53238 Dec 15 18:30 ./IPM_IN.622.gz
-rw-r--r-- 1 oracle oinstall 49494 Dec 15 18:30 ./IPM_IN.630.gz
-rw-r--r-- 1 oracle oinstall 39628 Dec 15 18:30 ./IPM_IN.631.gz
-rw-r--r-- 1 oracle oinstall 39930 Dec 15 18:30 ./IPM_IN.632.gz
-rw-r--r-- 1 oracle oinstall 47722 Dec 15 18:30 ./IPM_IN.629.gz
-rw-r--r-- 1 oracle oinstall 30667 Dec 15 18:31 ./IPM_IN.634.gz
-rw-r--r-- 1 oracle oinstall 38928 Dec 15 18:31 ./IPM_IN.635.gz
-rw-r--r-- 1 oracle oinstall 35996 Dec 15 18:31 ./IPM_IN.633.gz
-rw-r--r-- 1 oracle oinstall 65028 Dec 15 18:31 ./IPM_IN.637.gz
-rw-r--r-- 1 oracle oinstall 58210 Dec 15 18:31 ./IPM_IN.636.gz
-rw-r--r-- 1 oracle oinstall 57666 Dec 15 18:31 ./IPM_IN.638.gz
-rw-r--r-- 1 oracle oinstall 44096 Dec 15 18:31 ./IPM_IN.640.gz
-rw-r--r-- 1 oracle oinstall 39942 Dec 15 18:31 ./IPM_IN.641.gz
-rw-r--r-- 1 oracle oinstall 59751 Dec 15 18:31 ./IPM_IN.639.gz
-rw-r--r-- 1 oracle oinstall 56756 Dec 15 21:37 ./card_production.TRC002.gz
-rw------- 1 root sys 64649 Dec 16 16:02 ./core.gz
-rw-r--r-- 1 oracle oinstall 323721 Dec 16 18:19 ./DOWNLOAD_IPM.TRC024.gz
-rw-r--r-- 1 oracle oinstall 46019 Dec 16 18:21 ./IPM_IN.645.gz
-rw-r--r-- 1 oracle oinstall 48917 Dec 16 18:21 ./IPM_IN.646.gz
-rw-r--r-- 1 oracle oinstall 33757 Dec 16 18:21 ./IPM_IN.642.gz
-rw-r--r-- 1 oracle oinstall 40075 Dec 16 18:21 ./IPM_IN.644.gz
-rw-r--r-- 1 oracle oinstall 30694 Dec 16 18:21 ./IPM_IN.643.gz
-rw-r--r-- 1 oracle oinstall 35469 Dec 16 18:21 ./IPM_IN.647.gz
-rw-r--r-- 1 oracle oinstall 39638 Dec 16 18:21 ./IPM_IN.648.gz
-rw-r--r-- 1 oracle oinstall 33999 Dec 16 18:22 ./IPM_IN.649.gz
-rw-r--r-- 1 oracle oinstall 30745 Dec 16 18:22 ./IPM_IN.650.gz
-rw-r--r-- 1 oracle oinstall 35591 Dec 16 18:22 ./IPM_IN.651.gz
-rw-r--r-- 1 oracle oinstall 52578 Dec 16 18:23 ./IPM_IN.654.gz
-rw-r--r-- 1 oracle oinstall 35300 Dec 16 18:23 ./IPM_IN.653.gz
-rw-r--r-- 1 oracle oinstall 31457 Dec 16 18:23 ./IPM_IN.652.gz
-rw-r--r-- 1 oracle oinstall 53069 Dec 16 18:23 ./IPM_IN.655.gz
-rw-r--r-- 1 oracle oinstall 33515 Dec 16 18:23 ./IPM_IN.661.gz
-rw-r--r-- 1 oracle oinstall 53463 Dec 16 18:23 ./IPM_IN.658.gz
-rw-r--r-- 1 oracle oinstall 53096 Dec 16 18:23 ./IPM_IN.656.gz
-rw-r--r-- 1 oracle oinstall 39981 Dec 16 18:23 ./IPM_IN.662.gz
-rw-r--r-- 1 oracle oinstall 52975 Dec 16 18:23 ./IPM_IN.657.gz
-rw-r--r-- 1 oracle oinstall 54597 Dec 16 18:23 ./IPM_IN.660.gz
-rw-r--r-- 1 oracle oinstall 52256 Dec 16 18:23 ./IPM_IN.659.gz
-rw-r--r-- 1 oracle oinstall 35176 Dec 16 18:23 ./IPM_IN.663.gz
-rw-r--r-- 1 oracle oinstall 168505 Dec 16 18:27 ./DOWNLOAD_REC_REPORT.TRC005.gz
-rw-r--r-- 1 oracle oinstall 46947 Dec 17 12:29 ./EXEC_CARD_INS_ISSUING.TRC004.gz
-rw-r--r-- 1 oracle oinstall 329065 Dec 17 18:33 ./DOWNLOAD_IPM.TRC025.gz
-rw-r--r-- 1 oracle oinstall 326658 Dec 17 18:34 ./DOWNLOAD_IPM.TRC026.gz
-rw-r--r-- 1 oracle oinstall 330752 Dec 17 18:34 ./DOWNLOAD_IPM.TRC027.gz
-rw-r--r-- 1 oracle oinstall 31553 Dec 17 18:34 ./IPM_IN.664.gz
-rw-r--r-- 1 oracle oinstall 36451 Dec 17 18:34 ./IPM_IN.665.gz
-rw-r--r-- 1 oracle oinstall 48682 Dec 17 18:34 ./IPM_IN.671.gz
-rw-r--r-- 1 oracle oinstall 50374 Dec 17 18:34 ./IPM_IN.666.gz
-rw-r--r-- 1 oracle oinstall 50476 Dec 17 18:34 ./IPM_IN.669.gz
-rw-r--r-- 1 oracle oinstall 50932 Dec 17 18:34 ./IPM_IN.667.gz
-rw-r--r-- 1 oracle oinstall 48733 Dec 17 18:34 ./IPM_IN.670.gz
-rw-r--r-- 1 oracle oinstall 50340 Dec 17 18:34 ./IPM_IN.668.gz
-rw-r--r-- 1 oracle oinstall 47024 Dec 17 18:34 ./IPM_IN.672.gz
-rw-r--r-- 1 oracle oinstall 48929 Dec 17 18:34 ./IPM_IN.673.gz
-rw-r--r-- 1 oracle oinstall 49221 Dec 17 18:34 ./IPM_IN.675.gz
-rw-r--r-- 1 oracle oinstall 48635 Dec 17 18:34 ./IPM_IN.674.gz
-rw-r--r-- 1 oracle oinstall 63460 Dec 17 18:34 ./IPM_IN.676.gz
-rw-r--r-- 1 oracle oinstall 61438 Dec 17 18:34 ./IPM_IN.677.gz
-rw-r--r-- 1 oracle oinstall 54925 Dec 17 18:34 ./IPM_IN.679.gz
-rw-r--r-- 1 oracle oinstall 62159 Dec 17 18:34 ./IPM_IN.678.gz
-rw-r--r-- 1 oracle oinstall 59778 Dec 17 18:34 ./IPM_IN.680.gz
-rw-r--r-- 1 oracle oinstall 38229 Dec 17 18:34 ./IPM_IN.681.gz
-rw-r--r-- 1 oracle oinstall 30736 Dec 17 18:35 ./IPM_IN.683.gz
-rw-r--r-- 1 oracle oinstall 34331 Dec 17 18:35 ./IPM_IN.682.gz
-rw-r--r-- 1 oracle oinstall 46401 Dec 17 18:35 ./IPM_IN.685.gz
-rw-r--r-- 1 oracle oinstall 40691 Dec 17 18:35 ./IPM_IN.684.gz
-rw-r--r-- 1 oracle oinstall 44420 Dec 17 18:35 ./IPM_IN.686.gz
-rw-r--r-- 1 oracle oinstall 34468 Dec 17 18:35 ./IPM_IN.687.gz
-rw-r--r-- 1 oracle oinstall 30944 Dec 17 18:36 ./IPM_IN.689.gz
-rw-r--r-- 1 oracle oinstall 34931 Dec 17 18:36 ./IPM_IN.688.gz
-rw-r--r-- 1 oracle oinstall 33884 Dec 17 18:36 ./IPM_IN.690.gz
-rw-r--r-- 1 oracle oinstall 53296 Dec 17 18:36 ./IPM_IN.693.gz
-rw-r--r-- 1 oracle oinstall 31561 Dec 17 18:36 ./IPM_IN.691.gz
-rw-r--r-- 1 oracle oinstall 37280 Dec 17 18:36 ./IPM_IN.692.gz
-rw-r--r-- 1 oracle oinstall 53240 Dec 17 18:36 ./IPM_IN.698.gz
-rw-r--r-- 1 oracle oinstall 53167 Dec 17 18:36 ./IPM_IN.697.gz
-rw-r--r-- 1 oracle oinstall 52284 Dec 17 18:36 ./IPM_IN.696.gz
-rw-r--r-- 1 oracle oinstall 52992 Dec 17 18:36 ./IPM_IN.699.gz
-rw-r--r-- 1 oracle oinstall 53030 Dec 17 18:36 ./IPM_IN.695.gz
-rw-r--r-- 1 oracle oinstall 48925 Dec 17 18:36 ./IPM_IN.700.gz
-rw-r--r-- 1 oracle oinstall 52623 Dec 17 18:36 ./IPM_IN.694.gz
-rw-r--r-- 1 oracle oinstall 49081 Dec 17 18:36 ./IPM_IN.702.gz
-rw-r--r-- 1 oracle oinstall 47629 Dec 17 18:36 ./IPM_IN.705.gz
-rw-r--r-- 1 oracle oinstall 48868 Dec 17 18:36 ./IPM_IN.704.gz
-rw-r--r-- 1 oracle oinstall 48981 Dec 17 18:36 ./IPM_IN.703.gz
-rw-r--r-- 1 oracle oinstall 49148 Dec 17 18:36 ./IPM_IN.701.gz
-rw-r--r-- 1 oracle oinstall 36371 Dec 17 18:36 ./IPM_IN.708.gz
-rw-r--r-- 1 oracle oinstall 38757 Dec 17 18:36 ./IPM_IN.709.gz
-rw-r--r-- 1 oracle oinstall 49356 Dec 17 18:36 ./IPM_IN.706.gz
-rw-r--r-- 1 oracle oinstall 49660 Dec 17 18:36 ./IPM_IN.707.gz
-rw-r--r-- 1 oracle oinstall 30816 Dec 17 18:37 ./IPM_IN.711.gz
-rw-r--r-- 1 oracle oinstall 33489 Dec 17 18:37 ./IPM_IN.710.gz
-rw-r--r-- 1 oracle oinstall 59481 Dec 17 18:37 ./IPM_IN.717.gz
-rw-r--r-- 1 oracle oinstall 46432 Dec 17 18:37 ./IPM_IN.719.gz
-rw-r--r-- 1 oracle oinstall 58843 Dec 17 18:37 ./IPM_IN.714.gz
-rw-r--r-- 1 oracle oinstall 54727 Dec 17 18:37 ./IPM_IN.718.gz
-rw-r--r-- 1 oracle oinstall 61269 Dec 17 18:37 ./IPM_IN.716.gz
-rw-r--r-- 1 oracle oinstall 47022 Dec 17 18:37 ./IPM_IN.712.gz
-rw-r--r-- 1 oracle oinstall 63734 Dec 17 18:37 ./IPM_IN.715.gz
-rw-r--r-- 1 oracle oinstall 50150 Dec 17 18:37 ./IPM_IN.713.gz
-rw-r--r-- 1 oracle oinstall 55919 Dec 17 22:05 ./card_production.TRC003.gz
-rw-r--r-- 1 oracle oinstall 37531 Dec 17 22:05 ./EXEC_HSM.TRC012.gz
-rw-r--r-- 1 oracle oinstall 46809 Dec 18 09:23 ./EXEC_CARD_INS_ISSUING.TRC005.gz
-rw-r--r-- 1 oracle oinstall 38861 Dec 18 14:37 ./EXEC_HSM.TRC013.gz
-rw-r--r-- 1 oracle oinstall 323697 Dec 18 21:55 ./DOWNLOAD_IPM.TRC028.gz
-rw-r--r-- 1 oracle oinstall 37334 Dec 18 21:55 ./IPM_IN.720.gz
-rw-r--r-- 1 oracle oinstall 37438 Dec 18 21:55 ./IPM_IN.724.gz
-rw-r--r-- 1 oracle oinstall 37380 Dec 18 21:55 ./IPM_IN.722.gz
-rw-r--r-- 1 oracle oinstall 48730 Dec 18 21:55 ./IPM_IN.723.gz
-rw-r--r-- 1 oracle oinstall 30904 Dec 18 21:55 ./IPM_IN.721.gz
-rw-r--r-- 1 oracle oinstall 32296 Dec 18 21:56 ./IPM_IN.726.gz
-rw-r--r-- 1 oracle oinstall 37629 Dec 18 21:56 ./IPM_IN.727.gz
-rw-r--r-- 1 oracle oinstall 34476 Dec 18 21:56 ./IPM_IN.725.gz
-rw-r--r-- 1 oracle oinstall 52775 Dec 18 21:56 ./IPM_IN.733.gz
-rw-r--r-- 1 oracle oinstall 50059 Dec 18 21:56 ./IPM_IN.731.gz
-rw-r--r-- 1 oracle oinstall 30776 Dec 18 21:56 ./IPM_IN.729.gz
-rw-r--r-- 1 oracle oinstall 45778 Dec 18 21:56 ./IPM_IN.730.gz
-rw-r--r-- 1 oracle oinstall 33281 Dec 18 21:56 ./IPM_IN.728.gz
-rw-r--r-- 1 oracle oinstall 51636 Dec 18 21:56 ./IPM_IN.732.gz
-rw-r--r-- 1 oracle oinstall 52327 Dec 18 21:56 ./IPM_IN.735.gz
-rw-r--r-- 1 oracle oinstall 51854 Dec 18 21:56 ./IPM_IN.734.gz
-rw-r--r-- 1 oracle oinstall 53078 Dec 18 21:56 ./IPM_IN.736.gz
-rw-r--r-- 1 oracle oinstall 50058 Dec 18 21:56 ./IPM_IN.740.gz
-rw-r--r-- 1 oracle oinstall 48177 Dec 18 21:56 ./IPM_IN.742.gz
-rw-r--r-- 1 oracle oinstall 53427 Dec 18 21:56 ./IPM_IN.737.gz
-rw-r--r-- 1 oracle oinstall 48680 Dec 18 21:56 ./IPM_IN.743.gz
-rw-r--r-- 1 oracle oinstall 48560 Dec 18 21:56 ./IPM_IN.741.gz
-rw-r--r-- 1 oracle oinstall 53477 Dec 18 21:56 ./IPM_IN.739.gz
-rw-r--r-- 1 oracle oinstall 52433 Dec 18 21:56 ./IPM_IN.738.gz
-rw-r--r-- 1 oracle oinstall 49046 Dec 18 21:56 ./IPM_IN.747.gz
-rw-r--r-- 1 oracle oinstall 49195 Dec 18 21:56 ./IPM_IN.746.gz
-rw-r--r-- 1 oracle oinstall 47654 Dec 18 21:56 ./IPM_IN.745.gz
-rw-r--r-- 1 oracle oinstall 49088 Dec 18 21:56 ./IPM_IN.744.gz
-rw-r--r-- 1 oracle oinstall 63075 Dec 18 21:56 ./IPM_IN.748.gz
-rw-r--r-- 1 oracle oinstall 63929 Dec 18 21:56 ./IPM_IN.749.gz
-rw-r--r-- 1 oracle oinstall 63474 Dec 18 21:56 ./IPM_IN.750.gz
-rw-r--r-- 1 oracle oinstall 56984 Dec 18 21:56 ./IPM_IN.751.gz
-rw-r--r-- 1 oracle oinstall 55860 Dec 18 21:56 ./IPM_IN.752.gz
-rw-r--r-- 1 oracle oinstall 35279 Dec 18 21:56 ./IPM_IN.754.gz
-rw-r--r-- 1 oracle oinstall 39801 Dec 18 21:56 ./IPM_IN.755.gz
-rw-r--r-- 1 oracle oinstall 48725 Dec 18 21:56 ./IPM_IN.753.gz
-rw-r--r-- 1 oracle oinstall 32188 Dec 18 21:59 ./IPM_IN.757.gz


it shows till todays date.

Please help on it.

Regards,
James R. Ferguson
Acclaimed Contributor

Re: moving files

Hi :

> i want u list 15 days old files.

I presume by "old" you mean since the file's last _modification_ not last access:

# find . -type f -mtime +15 -exec ls -l {} +

Note that '-type f' limits selection to only files and not files and directories. The '-mtime' is the last modification timestamp. If you truly want a last access timestamp, then use '-atime'. See the 'find()' manpages for more information.

Regards!

...JRF...
himacs
Super Advisor

Re: moving files

fine