Skip to content
  • Technology
    • Hardware
    • Linux
    • Windows
  • Subjectivity
    • Photo
    • Nonsense
    • Ranting
  • Utilities
  • Contact
the.Zedt
Tech tips and random thoughts
MastodonBlueskyRSS
  • Technology
    • Hardware
    • Linux
    • Windows
  • Subjectivity
    • Photo
    • Nonsense
    • Ranting
  • Utilities
  • Contact
Tag: <span>string</span>

Tag: string

Home Posts tagged "string"

Count occurences of character X in all files in current directory

Count occurences of character X in all files in current directory
Linux  character count / linux / string 2 Jan 2012 15 Aug 2014 Leave a comment

If you ever need to count the occurences of a character in all (or some) files, this next series of commands would come in handy: for f in `ls`; do cat $f; done | awk ‘{ for ( i=1; i<=length; i++ ) arr[substr($0, i, 1)]++ }END{ for ( i in …

Continue reading"Count occurences of character X in all files in current directory"

Latest Comments

  • Zed on First glance and adding external antennas to the GL.iNet GL-MT300N-V2
  • Zed on How to install OpenWrt packages in RAM “permanently” on space-constrained devices
  • slmshn on First glance and adding external antennas to the GL.iNet GL-MT300N-V2
  • artin on How to install OpenWrt packages in RAM “permanently” on space-constrained devices
  • Aleksandras on Source engine games error in shaderapidx9.dll
Public Money - Public Code

Eliminate DRM!

Ad Free Blog

Popular in Technology

  • Adding static DNS records on DD-WRT
  • Gigabyte motherboards model naming scheme
  • How to disable/uninstall problematic Magisk modules
  • How to disable/remove unwanted apps from Android (no root)
  • How to tweak Samba on ASUSWRT with both public and protected folders

Popular in Hardware

  • Obtaining administrator access on Huawei HG8247H
  • WD hard drives jumper settings and SATA 1.5 Gbps limit
  • Western Digital (WD) Hard drive model numbers format
  • First glance and adding external antennas to the GL.iNet GL-MT300N-V2
  • How to correct sensors information with Home Assistant

Popular in Imagery

  • First glance and adding external antennas to the GL.iNet GL-MT300N-V2
  • Anonymous copilot
  • Tarja Turunen – 360 Degrees Tour (23.01.2020)
  • PCEngine’s APU2 Shininess
  • Alternosfera (23.02.2019)
Except where otherwise licensed or credited, information
on this website is in the public domain / CC0 licensed.
MastodonBlueskyRSS
Presented with Kahuna • Hosted by IntoVPS