Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > ger.ct > #345672

Re: Kleine Linux Shell Frage

Path csiph.com!news.redatomik.org!news.albasani.net!.POSTED!not-for-mail
From marc@invalid.invalid
Newsgroups ger.ct
Subject Re: Kleine Linux Shell Frage
Date Wed, 28 Mar 2018 14:16:59 +0200
Organization albasani.net
Lines 24
Message-ID <pmdsoe-k6e.ln1@pascal.gerges.lu> (permalink)
References <fi133rF2qk6U1@mid.individual.net> <slrnpbmqvg.3ro3.ak-8a@chimborazo.ee.ethz.ch>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15
Content-Transfer-Encoding 8bit
X-Trace news.albasani.net 1cd+BUDdZvFFUqNc/eWMGCYAud5H9kY0ECPfdeyni5RsqwGs0O2Ug4EzfyC3E72XxENbsDpr5s9jJuqjEGTyVTd1Rm2dWAgBF/gtYC/AaEF0jVxGgZG5V6V+Zo8erlCs
NNTP-Posting-Date Wed, 28 Mar 2018 13:08:02 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="sgoGzZVAUrRqVj7FB9FwNeaq/dewh5po6LTKkaICBd+j/2tj9RmoXb3hNKH9nvII3cw11Q6mLxgvTPxIENglykQf0bub9K5haInTx32oaZpTihytTWlG0UTWQ3d2bDTD"; mail-complaints-to="abuse@albasani.net"
User-Agent tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/4.14.12-x86_64-linode92 (x86_64))
Cancel-Lock sha1:/HtjqVjFH0PhpmIbmZP4Ag8M1oc=
Xref csiph.com ger.ct:345672

Show key headers only | View raw


Andreas Karrer <ak-8a@gmx.ch> wrote:
> * Jörg Barres <news@traicon.net>:
> 
>> Wer weiß eine Lösung?
> 
> ls -al | grep '^d'
> 
> Das "re" in grep steht für "Regular Expression"; darüber kann man
> ganze Bücher schreiben¹. Das Metazeichen "^" bedeutet, dass das
> danach Folgende Anfang der Zeile stehen muss.

Das listet alle directories, macht also das Gegenteil. Wollte man die
directories filtern, wuerde man

ls -al | grep '^[^d]' 

nutzen (matche alles, was zu Anfang kein 'd' hat)

ls -al ist ein sehr doofer Befehl, um danach Namen herauszufischen. Auch
wenn's keinen User namens dagobert gibt, geht  ' d' nicht. Das File
koennte ja 'test datei' heissen.

cu
  .\\arc

Back to ger.ct | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Kleine Linux Shell Frage Andreas Karrer <ak-8a@gmx.ch> - 2018-03-28 10:18 +0000
  Re: Kleine Linux Shell Frage Ruediger Lahl <ruediger.lahl@gmx.de> - 2018-03-28 13:08 +0200
  Re: Kleine Linux Shell Frage marc@invalid.invalid - 2018-03-28 14:16 +0200
    Re: Kleine Linux Shell Frage Gerald Gruner <gerald314@yahoo.de> - 2018-03-28 20:46 +0200
      Re: Kleine Linux Shell Frage Gerrit Heitsch <gerrit@laosinh.s.bawue.de> - 2018-03-28 20:55 +0200
      Re: Kleine Linux Shell Frage Gerald Gruner <gerald314@yahoo.de> - 2018-03-28 22:36 +0200
    Re: Kleine Linux Shell Frage Andreas Karrer <ak-8a@gmx.ch> - 2018-03-28 19:56 +0000
  Re: Kleine Linux Shell Frage Herwig AQSR <herwig.huener@t-online.de> - 2018-03-28 11:35 -0700
    Re: Kleine Linux Shell Frage Dietz Proepper <dietz-news@rotfl.franken.de> - 2018-03-29 09:05 +0200
      Re: Kleine Linux Shell Frage "Dr. Joachim Neudert" <neudert@5sl.org> - 2018-03-29 09:36 +0200
        Re: Kleine Linux Shell Frage Dietz Proepper <dietz-news@rotfl.franken.de> - 2018-03-29 13:30 +0200

csiph-web