[opensuse] some bash hints, please

2007-11-04 Thread Ronald Wiplinger
I am looking for some bash scripts: 1. I want to list all text files of one directory with a blank line in between. Currently I just use grep "" * 2. I want to delete files older than x (e.g., 3 minutes, 3 hours, 3 days, ...) bye Ronald -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [opensuse] some bash hints, please

2007-11-05 Thread Pavel Nemec
Dne Monday 05 November 2007 08:03:18 Ronald Wiplinger napsal(a): > I am looking for some bash scripts: > > 1. I want to list all text files of one directory with a blank line in > between. > Currently I just use grep "" * Text files? You mean file.txt, or file with text mime type? 100+1 how to do

Re: [opensuse] some bash hints, please

2007-11-05 Thread Carlos F Lange
On Mon November 5 2007 00:03, Ronald Wiplinger wrote: > I am looking for some bash scripts: > > 1. I want to list all text files of one directory with a blank line > in between. > Currently I just use grep "" * You are listing the content of the files with this command and I don't get a blank li

Re: [opensuse] some bash hints, please

2007-11-05 Thread Theo v. Werkhoven
Mon, 05 Nov 2007, by [EMAIL PROTECTED]: > I am looking for some bash scripts: > > 1. I want to list all text files of one directory with a blank line in > between. > Currently I just use grep "" * for i in $(find ./ -maxdepth 1 -type f);do file $i| grep ASCII test $? -eq 0 && echo done >

Re: [opensuse] some bash hints, please

2007-11-06 Thread Aaron Kulkis
Pavel Nemec wrote: Dne Monday 05 November 2007 08:03:18 Ronald Wiplinger napsal(a): I am looking for some bash scripts: 1. I want to list all text files of one directory with a blank line in between. Currently I just use grep "" * Text files? You mean file.txt, or file with text mime type? 10