![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to search for text in a file and copy file | imeadows | UNIX for Dummies Questions & Answers | 9 | 11-12-2008 09:12 PM |
| Script to capture new lines in a file and copy it to new file | fara_aris | Shell Programming and Scripting | 0 | 05-27-2008 10:11 PM |
| Copy files from the file to another directory | shreethik | SUN Solaris | 4 | 12-20-2007 04:26 PM |
| copy file to a directory by sequence | fooky | UNIX for Dummies Questions & Answers | 4 | 11-24-2007 10:40 PM |
| copy file from UNIX to shared directory | sireesha15 | UNIX for Dummies Questions & Answers | 5 | 11-13-2006 04:00 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to copy a file to a directory ,where file and dir are sent as args to a function?
Hi all,
I wanted to know how i can copy a file to a directory and then verify if that file is completely copied or not? Now the issues here is that the dir and the source file are to be sent as arguments to a function( this function should actually copy the files to a dir, then check if its completely copied) I dont want to use the if [ -e <filename>] option then figure out if the file exists in the dir or not.... Reason being i am giving a progress bar that actually calculates the % of completion.... I have written scripts that do the job ,but a pre-requisite is that a file already needs to exist in the dir, then to this file i can copy my source file. But my idea is to have no files in the targeted dir ,and when the cp is done the source file should exist in the destination dir!!!! please help!! |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|