|
From: | 빠는 Leonardo Goretti |
Subject: | Re: [shell-script] pattern match no bash |
Date: | Fri, 10 Aug 2018 14:46:06 -0300 |
porém se eu executar o mesmo comando direto no shell funciona.se eu executar o script aparece o seguinte erro:du -sh /!(proc|sys|dev)Dentro do script eu coloquei o seguinte comando usando pattern match:Pessoal,estou fazendo um script que coleta o tamanho dos diretórios na raiz. Porém não quero colocar alguns deles como: /proc, /sys, /dev
./teste.sh: line 9: syntax error near unexpected token `('
./teste.sh: line 9: `du -sh /!(proc|sys|dev)'Há poderia dar algum pitaco nesse problema?versão do bash: GNU bash, version 4.4.19(1)-release (x86_64-suse-linux-gnu)--Leonardo GorettiGerência e OperaçõesCelular: +55 (61) 97402-3166Analista de infraestrutura - GNU/LINUXInstrutor GNU/LINUXItil V3
Gtalk: address@hiddenU2Ugdm9jw6ogZGVjcnlwdG91IMOpIHBvciBxdWUgc2FiZSBkYXMgY29pc2FzCg==----------------------------------------------
[Prev in Thread] Current Thread [Next in Thread]
- pattern match no bash, Tiago Tarifa Munhoz, 2018/08/10
- Re: [shell-script] pattern match no bash, Vinicius Costa Carvalho, 2018/08/10
- Re: [shell-script] pattern match no bash, 빠는 Leonardo Goretti <=
- Re: [shell-script] pattern match no bash, Tiago Tarifa Munhoz, 2018/08/10
- Re: [shell-script] pattern match no bash, 빠는 Leonardo Goretti, 2018/08/10
- Re: [shell-script] pattern match no bash, Tiago Peczenyj, 2018/08/10
- Re: [shell-script] pattern match no bash, Tiago Tarifa Munhoz, 2018/08/10
- Re: [shell-script] pattern match no bash, phfbettega, 2018/08/11
- Re: [shell-script] pattern match no bash, Tiago Tarifa Munhoz, 2018/08/12
- Re: [shell-script] pattern match no bash, Julio C. Neves, 2018/08/13
- Re: [shell-script] pattern match no bash, Tiago Tarifa Munhoz, 2018/08/14
- Prev by Date: Re: [shell-script] pattern match no bash
- Next by Date: Re: [shell-script] pattern match no bash
- Previous by thread: Re: [shell-script] pattern match no bash
- Next by thread: Re: [shell-script] pattern match no bash
- Index(es):