10 Mar
2007
10 Mar
'07
10:34
On Saturday 10 March 2007 08:39, Randall R Schulz wrote:
On Friday 09 March 2007 16:32, Anders Johansson wrote:
...
I'm not very happy with the string tests, but I couldn't find a bash function that returned true on substring match. If anyone can think of a cleaner way of doing it, I'd love to know it
Check out the [[ value = pattern ]] tests. There are options for both glob and RE interpretation of "pattern."
Cool, that works, thanks So for dir in DH*; do for file in `find $dir -type f -name more\*.dat`; do [[ $file =~ t\(10\|9\) ]] || head -5 $file >> $dir/list; done; done -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org