Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Batchfiles? kann mir einer helfen?

Empfohlene Antworten

Veröffentlicht

Servus, habe folgendes Problem. ich muss in einer Batchfile eine Datei von unerwünschent Wörtern filtern. Hat einer ne Ahnung wie das funktioniert? Wäre nett wenn mir einer weiterhelfen würde!

danke schonmal im vorraus!

Was genau willst Du denn filtern? Möchtest Du alle Dateien in einem Ordner nach ihren Namen filtern oder eine Datei nach ihrem Inhalt oder was?

ups...sorry

ich will den inhalt einer datei filtern

beispiel:

Server A1QG is inactive

so sieht eine Zeile aus, davon hab ich je nach auswertung mehrere untereinander stehen. ich muss aber nur das "A1QG" haben, damit ich damit in eine weitere Batch gehen kann!

Also, wenns immer nur das 2. Wort in einer Zeile sein soll:

FOR /F "tokens=2" %i IN (Datei.txt) DO tuwas.bat %i

Gefunden in Konsole nach Eingabe von help for.

Gruß

Benjamin

Im Prinzip müsste das so oder so ähnlich funktionieren, aber nicht hier, da in der obersten zeile noch was anderes steht, ich hab es jetzt so gelöst:

for /f "tokens=1 delims=Server " %%n in (fertig.txt) do (echo %%n >>daten.txt)

del fertig.txt

for /f "tokens=1 delims=----------" %%n in (daten.txt) do (echo.%%n>>fertige_daten.txt)

del daten.txt

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.