![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can somebody solve this please | sreenusola | Shell Programming and Scripting | 1 | 08-28-2008 07:50 PM |
| How to solve this | akashag22 | Shell Programming and Scripting | 3 | 07-21-2007 05:54 AM |
| Can AWK solve it ??? | emon | Shell Programming and Scripting | 1 | 02-23-2005 01:07 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Can somebody solve this
I have to find the files older than 200 days from a path and copy them to some other directory with the current date stamp attached to it.
i have written like follows: #!/bin/ksh DSTAMP=$(date +"%y%m%d%H%M") rm $CA_OUT_PATH/ftp_logs/temp touch $CA_OUT_PATH/ftp_logs/temp chmod 777 $CA_OUT_PATH/ftp_logs/temp find $CA_OUT_PATH/*/ftp_out -type f -mtime -200 > $CA_OUT_PATH/ftp_logs/temp while read line do cp -f $line $CA_OUT_PATH/ftp_logs/${line}.$DSTAMP done < $CA_OUT_PATH/ftp_logs/temp but its trying to copy the entire path of the file and failing. I need to copy the only filenames.datestamp after the search pls look in to this help me out. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|