Re: pipe command

Pàgina inicial

Reply to this message
Autor: Dominique Fournier
Data:  
A: guilde
Assumpte: Re: pipe command
Bonjour Patrick

LS est un alias de ton shell et ne peut donc pas être executé directement.

Je propose de mettre cela dans un fichier : LS.sh
ls --color=auto -lt "$@" --color | more

chmod +x LS.sh

et ensuite
check_xoj linear *.xoj |xargs LS.sh

Bonne journée

Dom

Le 26/11/2019 à 11:17, Patrick Dupre a écrit :
> Bonjour,
>
> La commande
> check_xoj linear *.xoj |xargs ls -lt |more
> fonctionne tres bien, mais si je fais
> check_xoj linear *.xoj |xargs LS
> j'ai
> xargs: LS: No such file or directory
>
> Voici ce que j'ai dans LS:
> LS ()
> {
>      ls --color=auto -lt "$@" --color | more
> }

>
> Comment faire pourqu'elle fonctionne aussi apres xargs ?
> check_xoj renvoie une liste de fichiers (echo)
>
> Merci.
>
> ===========================================================================
>   Patrick DUPRÉ                                 | | email: pdupre@???
>   Laboratoire interdisciplinaire Carnot de Bourgogne
>   9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
>   Tel: +33 (0)380395988
> ===========================================================================

>
>