On Tue, Jun 05, 2007 at 04:57:59PM +0200, Oleg Verych wrote: [] > expand | while read line > do case "$line" in > ++*) echo "$line";; > $p*) [ ${#line} -gt $w79 ] && : ${long:=line} > echo "$line" | sed "/^$p/{s_ *\$__;s_^$p$s7${s}_$p${t}_;s_$s7 _${t}_g}" > ;; > *) echo "$line";; > esac > done > [ -n "$long" ] && echo "at least one line, wider than $w79 chars, found" 1>&2 > > -*- [] > Last -- bark, if there is at least one line longer that w79. Well, if test will be in the pipe end, i.e. ... | { while; test lingth; } ____ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines
- From: Sam Ravnborg <[email protected]>
- Re: [kbuild-devel] [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines
- From: Oleg Verych <[email protected]>
- Re: [kbuild-devel] [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines
- From: Sam Ravnborg <[email protected]>
- Re: [kbuild-devel] [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines
- From: Oleg Verych <[email protected]>
- Re: [kbuild-devel] [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines
- From: Sam Ravnborg <[email protected]>
- Re: [kbuild-devel] [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines
- From: Oleg Verych <[email protected]>
- [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines
- Prev by Date: Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- Next by Date: Re: libata & no PCI: dma_[un]map_single undefined
- Previous by thread: Re: [kbuild-devel] [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines
- Next by thread: Another version of cleanfile/cleanpatch (Re: [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines)
- Index(es):