עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

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.

עזרה עם פקודת grep

Featured Replies

פורסם

הי,

טיפה נתקעתי בבעיה הבאה:

בpath מסוים צריך למצוא את מספר ההופעות הממוצע של המילה wieght בכל הקבצים בהם היא מופיעה(ובקבצים אלו בלבד).

אשמח אם למישהו יש רעיון כללי או אפילו יותר טוב - קוד שעושה את זה.

חג שמח!

פורסם

זה לא מתאים ב100%, אבל עדיין זה יכול לעזור:



root@domU-12-31-39-07-C1-20:~# cat hosts
127.0.0.1 localhost
127.0.0.1 localhost


# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.0.1 domU-12-31-39-07-C1-20 # hosts-patch



root@domU-12-31-39-07-C1-20:~# cat hosts | grep host | perl -lne '
> $seen{$_}++;
> END {
> for $key (sort keys %seen) {
> printf "%s %.2f%%\n", $key, $seen{$key}/$. * 100;
> }
> }'
# The following lines are desirable for IPv6 capable hosts 16.67%
127.0.0.1 domU-12-31-39-07-C1-20 # bitnami-hosts-patch 16.67%
127.0.0.1 localhost 33.33%
::1 ip6-localhost ip6-loopback 16.67%
ff02::3 ip6-allhosts 16.67%
root@domU-12-31-39-07-C1-20:~#

פורסם
  • מחבר

תודה!

יש רעיונות אחרים?

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

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.