Re: OT: sed or awk command to add a file extension

2023-08-02 Thread Jon LaBadie
On Mon, Jul 31, 2023 at 11:30:38AM +, olivares33561 via users wrote: Sent from ProtonMail, encrypted email based in Switzerland. Sent with Proton Mail secure email. --- Original Message --- On Friday, July 28th, 2023 at 1:38 PM, Mike Wright wrote: ... ... OR ... you

Re: OT: sed or awk command to add a file extension

2023-07-31 Thread olivares33561 via users
Sent from ProtonMail, encrypted email based in Switzerland. Sent with Proton Mail secure email. --- Original Message --- On Friday, July 28th, 2023 at 1:38 PM, Mike Wright wrote: > On 7/28/23 05:31, olivares33561 via users wrote: > > > Dear fellow Fedora users > > > > I have a

Re: OT: sed or awk command to add a file extension

2023-07-28 Thread Mike Wright
On 7/28/23 05:31, olivares33561 via users wrote: Dear fellow Fedora users I have a file with entries \input{file1} \input{file2} ... \input{fileN} How can I add extension \input{file1.eps} \input{file2.eps} . \input{file3.eps} In case I need to add *jpg or *.png extension. I believe awk or

Re: OT: sed or awk command to add a file extension

2023-07-28 Thread Mike Wright
On 7/28/23 05:31, olivares33561 via users wrote: Dear fellow Fedora users I have a file with entries \input{file1} \input{file2} ... \input{fileN} How can I add extension \input{file1.eps} \input{file2.eps} . \input{file3.eps} In case I need to add *jpg or *.png extension. I believe awk or

Re: OT: sed or awk command to add a file extension

2023-07-28 Thread C. Linus Hicks
Assuming there are no extraneous characters on each line following the filename, and assuming every line in the file has a filename: sed -i 's/$/.jpg/' -Original Message- From: Community support for Fedora users Sent: Jul 28, 2023 8:32 AM To: Community support for Fedora users Cc:

Re: OT: sed or awk command to add a file extension

2023-07-28 Thread Mike Wright
On 7/28/23 05:31, olivares33561 via users wrote: Dear fellow Fedora users I have a file with entries \input{file1} \input{file2} ... \input{fileN} How can I add extension \input{file1.eps} \input{file2.eps} . \input{file3.eps} In case I need to add *jpg or *.png extension. I believe awk or

Re: OT: sed or awk command to add a file extension

2023-07-28 Thread stan via users
On Fri, 28 Jul 2023 12:31:49 + olivares33561 via users wrote: > Dear fellow Fedora users > > I have a file with entries > > \input{file1} > \input{file2} > ... > \input{fileN} > > How can I add extension > \input{file1.eps} > \input{file2.eps} > . > \input{file3.eps} I could try to hack

OT: sed or awk command to add a file extension

2023-07-28 Thread olivares33561 via users
Dear fellow Fedora users I have a file with entries \input{file1} \input{file2} ... \input{fileN} How can I add extension \input{file1.eps} \input{file2.eps} . \input{file3.eps} In case I need to add *jpg or *.png extension. I believe awk or sed would do the job. Thanks in advance Best