test/comparison/mkfile.sh
changeset 0 2b3e5ec03512
equal deleted inserted replaced
-1:000000000000 0:2b3e5ec03512
       
     1 #!/bin/csh
       
     2 
       
     3 #
       
     4 #    Copyright 2005-2006 Intel Corporation
       
     5 # 
       
     6 #    Licensed under the Apache License, Version 2.0 (the "License");
       
     7 #    you may not use this file except in compliance with the License.
       
     8 #    You may obtain a copy of the License at
       
     9 # 
       
    10 #        http://www.apache.org/licenses/LICENSE-2.0
       
    11 # 
       
    12 #    Unless required by applicable law or agreed to in writing, software
       
    13 #    distributed under the License is distributed on an "AS IS" BASIS,
       
    14 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    15 #    See the License for the specific language governing permissions and
       
    16 #    limitations under the License.
       
    17 #
       
    18 
       
    19 
       
    20 
       
    21 #Usage: mkfile.sh <size> <name>
       
    22 #Creates empty file of given size. k for KB, m for MB. default byte.
       
    23 #Example: mkfile 1m creates a file named 1m.file of size 1 Megabytes
       
    24 
       
    25 if ($#argv != 2) then
       
    26     echo " Usage  mkfile.sh <size> <name> "
       
    27     exit 0
       
    28 endif
       
    29 
       
    30 echo "Creating file $2  of size $1"
       
    31 head -c $1 /dev/zero > $2