[Top][All Lists]

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

Passing list of filename suffixes to script.

From: dora-solomon
Subject: Passing list of filename suffixes to script.
Date: Sat, 24 Jul 2021 18:57:34 +0200 (CEST)

From: Greg Wooledge <>
Subject: Re: Passing list of filename suffixes to script.
Date: 24/07/2021 18:48:19 Europe/Paris

On Sat, Jul 24, 2021 at 05:51:26PM +0200, wrote:
> I want to pass a list of filename suffixes to a bash script.

And then do what with them?

> Need also to accept CVS with filename

I don't understand what this means.

Possibility to choose CVS filename suffixes that are usually ,v rather than .v 

> suffixes ,v and the usual period (dot) suffixes ( e.g. .c .f ).  But perhaps 
> there are other filename 
> suffixes to accept, or else accept any pattern.

But... what is the script supposed to do with them?

The arguments you receive are in the positional parameters, "$1" and so
on, or "$@" for the full set. You can iterate over them (usually with
a for loop), or you can pass them all en masse to some other command with

Are you trying to construct a find command, or an rsync command, or

something? Please be specific about what you want to do.

Yes, it is for an rsync functionality.  I would like to gather the suffixes 
together as I 

will do some other checks in addition to rsync and some status logs.

reply via email to

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