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.

Bash: An einen bestimmten Ort in der Ausgabe schreiben

Empfohlene Antworten

Veröffentlicht

Hy Leute

Ich habe seit kurzem mit dem Shellscripten begonnen und nun komme ich einfach nicht mehr weiter.

Also:

Ich habe mit echo einen Text augegeben und möchte nun, dass der Cursor (nach einer bestätigung des anwenders) an einen bestimmten ort (zeile, zeichen) springt und dort eine änderung vornimmt.

Ist das machbar?

lg Shylux

Shellscript selber beherrscht so etwas nicht, es ist Terminal-Unabhängig.

Du könntest schauen ob tput vorhanden ist (gehört auf meinem Linux z.b. zu ncurses), damit geht es.

Das macht dein Shellscript dann natürlich von tput abhängig.

#!/bin/sh


clear

echo Dies ist die oberste Zeile

read INPUT

tput cup 0 5

echo war

Dieses Script würde nach einer Eingabe "ist" mit "war" überschreiben.

Hope that helps.

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.