The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to check file is being copied
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to check file is being copied
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
06-05-2008
incredible
Registered User
Join Date: May 2008
Location: s'pore
Posts: 2,120
a=`wc -c filename1 | nawk '{print $1}` b=`wc -c filename2 | nawk '{print $1}'`
if [[ $a -eq $b ]]; then
echo "File sizes match."
else
echo "File sizes differ! "
incredible
View Public Profile
Find all posts by incredible
Find incredible's past nominations received
Find incredible's present nominations given