[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing in red during output from head
From: |
Greg Wooledge |
Subject: |
Re: Printing in red during output from head |
Date: |
Wed, 21 Jul 2021 12:58:23 -0400 |
On Wed, Jul 21, 2021 at 06:41:59PM +0200, lisa-asket@perso.be wrote:
> Have also tried to use `tput` but has not worked
>
> find "$fdir" -type f -name "*.org" -o -name "*.texi" \
> -exec head -n "$n" {} \+ \
> | sed -e 's/==>/$(tput setaf 1)==>/;s/<==/<==$(tput sgr0)/'
Command substitutions are not performed inside single quotes. Changing
them to double quotes may work, but you'll need to double-check
everything else in the sed program to see whether it will work as
expected inside double quotes.
- Re: Printing in red during output from head, (continued)
Re: Printing in red during output from head, Chris Elvidge, 2021/07/21
- Re: Printing in red during output from head, Alex fxmbsw7 Ratchev, 2021/07/21
- Printing in red during output from head, lisa-asket, 2021/07/21
- Re: Printing in red during output from head, Chris Elvidge, 2021/07/21
- Re: Printing in red during output from head, Greg Wooledge, 2021/07/21
- Printing in red during output from head, lisa-asket, 2021/07/21
- Re: Printing in red during output from head, Greg Wooledge, 2021/07/21
- Printing in red during output from head, lisa-asket, 2021/07/21
- Re: Printing in red during output from head,
Greg Wooledge <=
- Printing in red during output from head, lisa-asket, 2021/07/21
Printing in red during output from head, lisa-asket, 2021/07/21
Re: Printing in red during output from head, Chris Elvidge, 2021/07/21
Re: Printing in red during output from head, Greg Wooledge, 2021/07/21
Re: Printing in red during output from head, lisa-asket, 2021/07/21
Re: Printing in red during output from head, Alex fxmbsw7 Ratchev, 2021/07/22