Re: [CentOS] Assitance with perl

2022-02-03 Thread Joe Kline
I avoid using ' or " in one-liners or even programs. I use q() or qq(). These are quote-like operators for single quote and double quote. There are, of course, many more: https://perldoc.perl.org/perlop#Quote-and-Quote-like-Operators gizmo ___ CentO

Re: [CentOS] Assitance with perl

2022-02-03 Thread H
On 02/02/2022 11:34 PM, Jon LaBadie wrote: > On Wed, Feb 02, 2022 at 08:54:38PM -0500, H wrote: > I am writing a long bash script under CentOS 7 where perl is used for > manipulating some external files. So far I am using perl one-liners to do > so but ran into a problem when I need t

Re: [CentOS] Assitance with perl

2022-02-02 Thread David Christensen
On 1/30/22 17:12, H wrote: I am writing a long bash script under CentOS 7 where perl is used for manipulating some external files. So far I am using perl one-liners to do so but ran into a problem when I need to append text to an external file. Here is a simplified example in the bash script w

Re: [CentOS] Assitance with perl

2022-02-02 Thread Jon LaBadie
On Wed, Feb 02, 2022 at 08:54:38PM -0500, H wrote: I am writing a long bash script under CentOS 7 where perl is used for manipulating some external files. So far I am using perl one-liners to do so but ran into a problem when I need to append text to an external file. Here is a simplified exam

Re: [CentOS] Assitance with perl

2022-02-02 Thread H
On 02/02/2022 08:54 PM, H wrote: > On 01/31/2022 09:59 PM, H wrote: >> On 01/30/2022 11:00 PM, Orion Poplawski wrote: >>> On 1/30/22 18:12, H wrote: I am writing a long bash script under CentOS 7 where perl is used for manipulating some external files. So far I am using perl one-liners t

Re: [CentOS] Assitance with perl

2022-02-02 Thread H
On 01/31/2022 09:59 PM, H wrote: > On 01/30/2022 11:00 PM, Orion Poplawski wrote: >> On 1/30/22 18:12, H wrote: >>> I am writing a long bash script under CentOS 7 where perl is used for >>> manipulating some external files. So far I am using perl one-liners to do >>> so but ran into a problem whe

Re: [CentOS] Assitance with perl

2022-01-31 Thread H
On 01/30/2022 11:00 PM, Orion Poplawski wrote: > On 1/30/22 18:12, H wrote: >> I am writing a long bash script under CentOS 7 where perl is used for >> manipulating some external files. So far I am using perl one-liners to do so >> but ran into a problem when I need to append text to an external

Re: [CentOS] Assitance with perl

2022-01-30 Thread Orion Poplawski
On 1/30/22 18:12, H wrote: I am writing a long bash script under CentOS 7 where perl is used for manipulating some external files. So far I am using perl one-liners to do so but ran into a problem when I need to append text to an external file. Here is a simplified example in the bash script w

Re: [CentOS] Assitance with perl

2022-01-30 Thread H
On January 30, 2022 8:25:46 PM EST, mailist wrote: >On 2022-01-30 20:12, H wrote: >> I am writing a long bash script under CentOS 7 where perl is used for >> manipulating some external files. So far I am using perl one-liners >to >> do so but ran into a problem when I need to append text to an >ex

Re: [CentOS] Assitance with perl

2022-01-30 Thread mailist
On 2022-01-30 20:12, H wrote: I am writing a long bash script under CentOS 7 where perl is used for manipulating some external files. So far I am using perl one-liners to do so but ran into a problem when I need to append text to an external file. Rewrite the whole thing in Perl. Over the year

[CentOS] Assitance with perl

2022-01-30 Thread H
I am writing a long bash script under CentOS 7 where perl is used for manipulating some external files. So far I am using perl one-liners to do so but ran into a problem when I need to append text to an external file. Here is a simplified example in the bash script where txt is a bash variable