Re: Some shell scripts; a more elegant approach?

2006-05-18 Thread Kyrre Nygard
At 17:59 16.05.2006, Atom Powers wrote: It is difficult to understand exactly what you want your script to do without comments. You may get a better response if you can describe what you want your scripts to do. Thanks man, your advice was really helpful! This though: -- for file in `find

Some shell scripts; a more elegant approach?

2006-05-16 Thread Kyrre Nygard
Hello! I have a bash script here to clean .txt files. But I want to incorporate a feature where, if the .txt file is less than 300 bytes, it will echo $file: Corrupt. I'm very new to scripting, but I know that this method is not really nice: -- for file in `find -s . -type f -name *.txt`;

Re: Some shell scripts; a more elegant approach?

2006-05-16 Thread Atom Powers
It is difficult to understand exactly what you want your script to do without comments. You may get a better response if you can describe what you want your scripts to do. On 5/16/06, Kyrre Nygard [EMAIL PROTECTED] wrote: Hello! I have a bash script here to clean .txt files. But I want to