RSS Forums RSS
Please support our Community Introductions advertiser: Programming Forums
Views: 1226 | Replies: 0
Reply
Join Date: Jul 2005
Posts: 23
Reputation: gritty is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
gritty gritty is offline Offline
Newbie Poster

script to add spaces to file not working

  #1  
Jul 20th, 2005
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
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:09 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC