Re: [gentoo-user] [OT] Kinda "try ... catch" in a shell script...how

2018-03-10 Thread Stroller
> On 10 Mar 2018, at 08:26, tu...@posteo.de wrote: > ... > > As soon the file is not found, the script ends with an 'Not found' > error, which '-f' is exactly for, because the expanding comes before > the '-f'... > > So I need something else or a try-catch-thingy to make that work...but > how?

Re: [gentoo-user] [OT] Kinda "try ... catch" in a shell script...how

2018-03-10 Thread Alexander Kapshuk
On Sat, Mar 10, 2018 at 10:26 AM, wrote: > Hi, > > I have a coyple of files on my harddisk and on a mobile usb-disc. > > Their names are of that pattern: > > something--something > > where 'soemthing' can be totally different from file to file and > '' is a checksum, which does

[gentoo-user] [OT] Kinda "try ... catch" in a shell script...how

2018-03-10 Thread tuxic
Hi, I have a coyple of files on my harddisk and on a mobile usb-disc. Their names are of that pattern: something--something where 'soemthing' can be totally different from file to file and '' is a checksum, which does not match the checksum of the according file. I want to delete the files