Skip to content
  • Technology
    • Hardware
    • Linux
    • Windows
  • Subjectivity
    • Photo
    • Nonsense
    • Ranting
  • Utilities
  • Contact
  • Search
the.Zedt
Tech tips and random thoughts
MastodonTwitterRSS
  • Technology
    • Hardware
    • Linux
    • Windows
  • Subjectivity
    • Photo
    • Nonsense
    • Ranting
  • Utilities
  • Contact
  • Search
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

  • Another Tobias on How to install OPNSense on PCEngines’ APU2
  • Mike on How to revert Firefox 91+ from saving temporary files to the Downloads folder
  • Dan on Restarting USB subsystem in CentOS
  • Matthias Galvin on How to update OpenWRT while retaining existing configuration and all custom packages
  • Xavi Portell on Obtaining administrator access on Huawei HG8247H
Public Money - Public Code

Eliminate DRM!

Ad Free Blog

Popular in Technology

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

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
  • Using a DS1302 Real Time Clock module on Raspberry PI
  • DVB-C TV on Raspberry PI with LibreELEC/Kodi

Popular in Imagery

  • PCEngine’s APU2 Shininess
  • Tarja Turunen – 360 Degrees Tour (23.01.2020)
  • Sunflower
  • PCEngine’s APU4 Shininess
  • Alternosfera (23.02.2019)
Back to Top
Except where otherwise licensed or credited, information
on this website is in the public domain / CC0 licensed.
MastodonTwitterRSS
Enhanced with Kahuna • Hosted by IntoVPS