I have a script that I'm working on to pad files with spaces. The spaces need will vary. This is what I have so far but it isn't working. Any suggestions?
#!/bin/bash
echo -n "Enter filename "
read filename
echo -n "Enter start size "
read start
echo -n "Enter stop size "
read stop
while [ $start < $stop ]; do
sed '/$/G' >>$filename
done
wc -m $filename