repo.or.cz
/
hvf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cp/guest: queue up a Channel Report Word after a device is attached
[hvf.git]
/
cp
/
scripts
/
pad.sh
blob
701e330f9028f5fd1a6b1d7813f165da35d7aa1f
1
#!/bin/bash
2
3
# pad <fname> <multiple>
4
5
len
=
`stat -c %s "
$1
"`
6
dif
=
`expr
$len
% "
$2
"`
7
8
if
[
$dif
-ne
0
];
then
9
dif
=
`expr "
$2
" -
$dif
`
10
dd
if
=/
dev
/
zero bs
=
1
count
=
$dif
2
> /
dev
/
null
>>
"
$1
"
11
fi