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.

Empfohlene Antworten

Veröffentlicht

Wie stell ich es bei UNIX am besten an, dass ich den ASCII-Wert eines Zeichens bekomme.

Quasi der gleiche Vorgang wie bei der php-Funktion ord()

Allerdings möchte ich kein Perl nutzen. Geht das irgendwie?

Brauche das für nen Shell-Skript (Kornshell ksh)

Wieso kein Perl? Unter perl könnte das z.B. so aussehen:

perl -e "exit ord shift" a

echo $?

Dieser Zweizeiler gibt 97 aus. Wenn Du immer noch kein perl magst kannst Du Dir ja ein kleines c-Programm schreiben das das gleiche macht.

In meinem Fall möchte ich das Zeichen ' (Shift + #) umwandeln.

Da sollte eigentlich ne Zahl zwischen 0 und 130 oder sowas rauskommen.

Es kommt aber 9994 raus.

Oder habe ich da nen Denkfehler?

habe es jetzt so gemacht:

root@localhost# echo "'" | od -An -i

Wollte es halt erst mal testen, bevor ich es in das Skript einbaue.

Für das Zeichen ' muss 39 rauskommen.

Das hier kommt raus:

root@localhost# echo -n "'" | od -An -i

11630 8231 2560

Wie gesagt: Das Ergebnis muss 39 sein!!!!!

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.