help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing colouring through a line of text


From: Greg Wooledge
Subject: Re: Changing colouring through a line of text
Date: Tue, 21 Mar 2023 10:59:39 -0400

On Tue, Mar 21, 2023 at 08:19:35PM +0530, Bipul kumar wrote:
> To retrieve the desired string for the blue and white outputs, I have used
> the cut command in a subshell.

You can use bash's parameter expansions instead.  left=${string:0:18}
for example.  This saves a lot of time.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]