home.social

#grep — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #grep, aggregated by home.social.

  1. Did you jump to the latest valuable news that vermaden carefully and painstakingly creates for us? You haven't?

    You don't know about its existence?

    Go and have a look

    vermaden.wordpress.com/2026/05

    #BSD #news #computers #OS #verblog #vermaden #no #TV #grep #important #RSS

  2. Wusstet ihr, dass `grep -r "TODO" .` euch zeigt, wie viele Baustellen ihr in eurem Projekt habt? 🔍

    Bei mir: 47 TODOs, 3 FIXMEs und ein Kommentar der einfach nur "warum???" heißt. Das Projekt läuft seit 2019 in Produktion. 😅

    Manchmal ist freie Software auch einfach ehrliche Software.

    #Linux #OpenSource #grep #Entwicklung #FreieSoftware

  3. Guten Morgen! ☕

    Wusstet ihr, dass `grep` seinen Namen von einem `ed`-Befehl hat? `g/re/p` = global / regular expression / print.

    50 Jahre alter Unix-Befehl, läuft heute noch auf jedem Linux-System – und ist schneller als die meisten "modernen" Tools. 🦕⚡

    Alte Software, die einfach funktioniert: das ist auch freie Software-Kultur.

    #Linux #Unix #grep #FreieSoftware #Terminal

  4. Folgendes funktioniert also tatsächlich: man erstellt sich im modernen im #UEFI Modus installierten Betriebssystem (zB LMDE7) ein Desktop Icon, das den Befehl sudo efibootmgr -n 001A und dann einen reboot ausführt. Dann fährt der Rechner wieder runter und startet Windows 7 im #MBR Modus. #efibootmgr listet auch die Hardware #GUID des SATA #controller Dies kann man sich mit #grep im Befehl greifen. Damit wird das resistent gegen Änderungen in der Nummerierung.

  5. Guten Morgen! ☕

    Wusstet ihr, dass `grep` seinen Namen von einem ed-Befehl hat? `g/re/p` = "global regular expression print". Seit 1973 rettet es täglich unzählige Admins vor dem Wahnsinn.

    `grep -r "Kaffeepause" /home/` – leider noch nie was gefunden 😅

    #Linux #grep #CLI #FreieSoftware #Commandline

  6. Whoseever last day at Anthropic is the 30th of April, please do leak Mythos code 😂

    #AI #noAI #LLM #LLMs #grep #infosec

  7. Z pewnością wielu z Was zna narzędzie #grep, wyszukujące fraz w plikach tekstowych. Ale powstało coś, co ma go zastąpić i nazywa się - a jakże - #ripgrep. Oto poradnik tego "pogromcy".

    #linux #terminal

    dev.to/shrsv/ripgrep-your-jour

  8. Wusstet ihr, dass `grep` seinen Namen vom ed-Befehl `g/re/p` hat? "Global Regular Expression Print" – also: such überall, zeig mir's. 😄

    50 Jahre später tippt man immer noch `grep -r "TODO" .` und bereut sein Leben.

    Manche Dinge altern wie guter Wein. Und manche Codebases wie Sauermilch. 🍷💀

    #Linux #Unix #grep #Commandline #FreieSoftware

  9. Wusstest du, dass `grep` seinen Namen vom ed-Befehl `g/re/p` hat? ("global regular expression print") 🤓

    Also quasi: jemand war zu faul zum Tippen und hat versehentlich eines der meistgenutzten Unix-Tools erfunden.

    Faulheit als Innovationsmotor seit 1973. 🐧

    #Linux #Unix #grep #FreieSoftware #Commandline #Nerdwissen

  10. Hm kann man die Liste der Accounts der man folgt irgendwie exportieren um darin mit #grep und Co. zu suchen?

  11. Wusstet ihr, dass `grep -r "TODO" ~/projekte/` um 2 Uhr nachts eine existenzielle Erfahrung sein kann? 🌙

    237 offene TODOs. Manche von 2019. Eines lautet nur: "irgendwann richtig machen".

    Das Schöne an freier Software: Der Code liegt offen da – mitsamt all seiner ehrlichen Verzweiflung. 😅

    #Linux #FreieSoftware #grep #OpenSource #RealDeveloperHours

  12. Ah, the classic "my #grep can beat up your grep" showdown! 🎩✨ Behold, a blog post about ripgrep's speed—because clearly, the world was desperate for yet another mind-numbing benchmark of #terminal #wizards whispering sweet nothings to their consoles. 🐢💨 #Rust #fanboyism never looked so thrilling! 🔥🕵️‍♂️
    burntsushi.net/ripgrep/ #showdown #ripgrep #speed #HackerNews #ngated

  13. Пока другие выбирают архитектуру, поиск по коду в GitVerse уже работает

    Поиск по коду — одна из тех функций, ценность которых ощущается мгновенно. Она либо есть и экономит часы, либо её нет — и ты начинаешь открывать файлы вручную, клонировать репозиторий, запускать find или средства своей IDE и вспоминать «где же это было». Мы добавили в GitVerse поиск по коду в репозиториях. и сделали это быстро. Не потому что «срезали углы», а потому что опирались на инструмент, который десятилетиями решает задачу поиска по коду внутри Git: git grep . Пока другие поднимают тяжёлые поисковые платформы, возводят кластеры, строят индексаторы, мы выбрали простое и проверенное решение, которое работает прямо сейчас.

    habr.com/ru/companies/sberbank

    #git #gitverse #поиск #grep

  14. Wusstest du, dass `grep` seinen Namen von einem ed-Befehl hat? `g/re/p` = "global regular expression print". Aus einem Editor-Hack wurde eines der meistgenutzten Unix-Tools aller Zeiten. 🐧

    Manchmal entsteht die beste Software nicht durch Design, sondern durch "moment, das könnte nützlich sein..." ✨

    #Linux #Unix #grep #FreieSoftware #Commandline

  15. Maybe unpopular take, but cat foo | grep is better than grep, because it has a cat in it. Cats are cute!

    #Linux #grep #linux_terminal #Cats #AppropriateUseOfCat

  16. Wusstet ihr, dass `grep` seinen Namen von einem `ed`-Befehl hat? `g/re/p` = "global / regular expression / print". Also buchstäblich ein Akronym aus nem Texteditor-Kommando aus den 70ern. 🐧

    Linux ist manchmal wie ein archäologisches Ausgrabungsfeld – aber die alten Sachen funktionieren noch. Und das ist eigentlich ziemlich cool.

    #Linux #grep #Unix #FreieSoftware #Terminal

  17. 🗃️ ARCHIVE : « Comment j'ai (presque) foutu en l'air une demi-journée de boulot » (2023)
    Récupérer un fichier texte perdu avec un bête « grep », c'est la magie de Gnunux…
    ▶️ studios.ptilouk.net/superflu-r
    #BD #GriseBouille #humour #grep #script #GNULinux #Linux

  18. @gumnos

    A subtler version of another part of the bug is caused by a similarly bad handling of EOF in another part of #FreeBSD #grep's roll-its-own I/O library.

    cgit.freebsd.org/src/tree/usr.

    With your example of

    /usr/bin/grep x

    You can enter a single space, then terminate the read(2) with the EOF special character; and you'll have to send EOF 2 more times to get grep to exit.

    A regular file containing just a SPC exhibits the same behaviour of wrongly needing to receive EOF from read() twice.

  19. @gumnos

    Here's part of the bug.

    github.com/freebsd/freebsd-src

    There's no handling of EOF if it occurs as the very first read() of the file.

    A zero-length regular file and /dev/null will also result in two read()s returning 0 before grep then exits.

    This code was introduced in commit 3ed1008b891eb34df96a6ae4f87e5a3270be759c in 2010.

    #OpenBSD's version of this code is older and uses the normal C stdio library routines and getline(3) rather than rolling its own layer over read().

    #FreeBSD #grep

  20. #TerminalTip: how to use #grep to highlight a line of interest to you without removing any other lines:

    Let's say you're using a command that lists something, and you want to highlight any line that contains the word "apple", without highlighting anything else, or removing any lines from the output. Here's how you can do that:

    some_command |grep --color -ie ^ -e "^.*apple.*$"
    
  21. @gumnos

    I am the voice of experience:

    @rl_dane was talking about getopt yesterday, and I found that I was running a /usr/local/bin/getopt from ports with very different handling of '--' (alluded to by @steeph , so I had been checking it out) to the actual #FreeBSD /usr/bin/getopt on the machine.

    I wouldn't be surprised if I'm running a different /usr/bin/grep (I checked that.) to you. "I'm using FreeBSD grep." has famously been two entirely different programs over the years.

    #getopt #grep

  22. @gumnos

    But did you also do a

    type grep

    to ensure that you were running /usr/bin/grep and not something from ports, nor some 'helpful' alias/function that someone has snuck in to /etc/profile and /etc/csh.cshrc?

    It wouldn't be the first time in history for the latter. Best to eliminate it straightaway so that the blame can be squarely hung upon /usr/bin/grep.

    #grep #FreeBSD

  23. @gumnos

    Not reproducible, as expected, on my older #FreeBSD here.

    Make sure to double check for embarrassing shell scripts, aliases, directories in $PATH, and shell functions before writing that bug report. I've seen that so many times over the years. (-:

    #grep

  24. @amin

    -c, -l, -h, -H, and -q are my favorite #grep flags. :D

    Huh, that almost became a [Marcel Duchamp] reference. 😅

  25. GUIs are very nice yes, but nothing makes you feel quite as powerful as a successfully chained command line pipeline.

    For example, taking a massive log file and filtering it through cat | grep | awk | sort | uniq -c to find the exact problem in seconds is a form of wizardry that modern UI simply cannot replicate.

    Sometimes I believe the pipe | might be the single greatest invention in computing history lol 😋

    #bash #shell #linux #terminal #cli #grep #tui #sysadmin #curl #debian #arch #nixos #ubuntu #linuxmint #fedora

  26. 💾 The File Count Challenge 🔎

    Have you ever wondered how many PDFs, images, videos, or particular kind of files you have on your device? It is the time to find out.

    I am hereby proud to officially launch a Fedi-wide file count challenge, in exclusive partnership with the 2025-27 class of @xpub 👾

    💁 How to participate

    1. Go to your main device (not mobile)
    2. Open the terminal
    3. Run find . | grep '.pdf$' -c (on Windows: gci -r | where Name -match '\.pdf$')
    4. Repeat the previous command, replacing “pdf” with any file format you are interested in sharing. We suggest: jpg, mp3, and png. 🔆 Bonus: html, js, ttf, odt, svg
    5. Take a screenshot of the output
    6. Share the screenshot on the Fediverse, using the #fileCountChallenge hashtag (please, copy-paste the actual text from the terminal in the image description/alt text)
    7. Add your (user)name and results to the scoreboard
    8. 🆒 Bonus: share the story explaining why you have so many/little files for one format.

    🏆 Awards

    There is a secret prize for the three people who have the most PDFs, JPEGs, and HTMLs. More info to follow.

    Boost, share, fork… Do whatever you want, but please have fun while doing it.

    I willl keep writing updates. Yaaaaaaay ⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️⌨️

    #fileCountChallenge #fileCount #XPUB #challenge #terminal #Linux #cmd #CLI #find #grep #filesystem #file #files

  27. Learn how to view, format, and inspect CSV files in the Linux terminal using column, cut, sort, grep, and less commands. No spreadsheet needed!

    Full Guide Here: ostechnix.com/view-csv-files-l

    #CSV #Linuxcommands #Linuxbasics #Linux #DataInspection #Column #Sort #Cut #Grep

  28. Warum die Kommandozeile dein wichtigstes Linux‑Werkzeug ist

    Warum du die Werkzeugkasten‑Philosophie kennen solltest Wenn du als Administrator ernsthaft mit Linux arbeiten willst, kommst du an der Kommandozeile nicht vorbei. Anders als grafische Oberflächen, die dir meistens große, monolithische Programmpakete an die Hand geben, setzt die Kommandozeile auf viele kleine Werkzeuge, die du frei kombinieren kannst, um maßgeschneiderte Lösungen für deine Aufgaben zu bauen. Gerade im Server‑Umfeld, bei Automatisierung, Skripting und Fehlersuche […]

    andreas-moor.de/warum-die-komm

  29. You know you're a true geek when...

    Your rhyming dictionary is `grep -P ... /usr/share/dict/words` or equivalent.

    #geek #Unix #Linux #grep #dict #rhyming

  30. #tersoftware de linha de comando

    #jq - formatação e bonitificação de texto em formato JSON
    #bat - um #cat com asas :)
    #ncdu - interface em ncurses pro #du, muito útil pra encontrar (e apagar) diretórios e arquivos gigantes no disco
    #ranger - navegador de arquivos com atalhos do vim
    #z - acessa pastas frequentemente utilizadas diretamente
    #fzf - backend de fuzzy search compatível com todos os sabores de shells e vim.
    #fd - um #find mais intuitivo
    #rg - um #grep mais intuitivo, com mais funcionalidades (e mais rápido)

  31. #tersoftware de linha de comando

    #jq - formatação e bonitificação de texto em formato JSON
    #bat - um #cat com asas :)
    #ncdu - interface em ncurses pro #du, muito útil pra encontrar (e apagar) diretórios e arquivos gigantes no disco
    #ranger - navegador de arquivos com atalhos do vim
    #z - acessa pastas frequentemente utilizadas diretamente
    #fzf - backend de fuzzy search compatível com todos os sabores de shells e vim.
    #fd - um #find mais intuitivo
    #rg - um #grep mais intuitivo, com mais funcionalidades (e mais rápido)

  32. #tersoftware de linha de comando

    #jq - formatação e bonitificação de texto em formato JSON
    #bat - um #cat com asas :)
    #ncdu - interface em ncurses pro #du, muito útil pra encontrar (e apagar) diretórios e arquivos gigantes no disco
    #ranger - navegador de arquivos com atalhos do vim
    #z - acessa pastas frequentemente utilizadas diretamente
    #fzf - backend de fuzzy search compatível com todos os sabores de shells e vim.
    #fd - um #find mais intuitivo
    #rg - um #grep mais intuitivo, com mais funcionalidades (e mais rápido)

  33. #tersoftware de linha de comando

    #jq - formatação e bonitificação de texto em formato JSON
    #bat - um #cat com asas :)
    #ncdu - interface em ncurses pro #du, muito útil pra encontrar (e apagar) diretórios e arquivos gigantes no disco
    #ranger - navegador de arquivos com atalhos do vim
    #z - acessa pastas frequentemente utilizadas diretamente
    #fzf - backend de fuzzy search compatível com todos os sabores de shells e vim.
    #fd - um #find mais intuitivo
    #rg - um #grep mais intuitivo, com mais funcionalidades (e mais rápido)

  34. #tersoftware de linha de comando

    #jq - formatação e bonitificação de texto em formato JSON
    #bat - um #cat com asas :)
    #ncdu - interface em ncurses pro #du, muito útil pra encontrar (e apagar) diretórios e arquivos gigantes no disco
    #ranger - navegador de arquivos com atalhos do vim
    #z - acessa pastas frequentemente utilizadas diretamente
    #fzf - backend de fuzzy search compatível com todos os sabores de shells e vim.
    #fd - um #find mais intuitivo
    #rg - um #grep mais intuitivo, com mais funcionalidades (e mais rápido)

  35. Monitoring my ssh connections on the SBC Pi5

    the command used is this fuction

    `function psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto; }`

    #networking #sshd #ssh #ps #grep #psgrep #OpenSource #POSIX

  36. Monitoring my ssh connections on the SBC Pi5

    the command used is this fuction

    `function psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto; }`

    #networking #sshd #ssh #ps #grep #psgrep #OpenSource #POSIX

  37. Monitoring my ssh connections on the SBC Pi5

    the command used is this fuction

    `function psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto; }`

    #networking #sshd #ssh #ps #grep #psgrep #OpenSource #POSIX

  38. Monitoring my ssh connections on the SBC Pi5

    the command used is this fuction

    `function psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto; }`

    #networking #sshd #ssh #ps #grep #psgrep #OpenSource #POSIX

  39. Monitoring my ssh connections on the SBC Pi5

    the command used is this fuction

    `function psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto; }`

    #networking #sshd #ssh #ps #grep #psgrep #OpenSource #POSIX

  40. #ripgrep replacement in #bash with #GNU #grep.

    forgejo.mueller.network/Zenton

    ripgrepgeneric: da, wo es kein ripgrep gibt ☝️

    zum beispiel auf alten, zu migrierenden, servern. auf denen es wohl noch alte configs zu durchforsten, aber keine attraktive möglichkeit ripgrep nachzuinstallieren, gibt.

    da sucht man, in welcher datei das suchwort drinsteht und wenn ja, an welcher stelle.

    dieser zweizeiler mit variablenübernahme wird durch das script komftebel™ vertreten.

    #linux #opensource #selbstgemacht

  41. Утилита r.exe

    В программировании часто приходится писать программные компоненты, которые, в общем очень похожи друг на друга по своей структуре и API. В заметке я представил простую утилиту r.exe для авто-замены токенов в файлах и названиях файлов.

    habr.com/ru/articles/869458/

    #sed #grep #find #rename #r #rexe #auto_rename #devops #автозамена_слов #автозамена

  42. [FR]
    Arrivée ici début 2025, big up aux @admin de Piaille.fr ! #introduction :
    Tombée dans la marmite #OpenSource en 2000, je me nourris de commandes #bash. Fichiers texte, #grep et ses jolies #regex, #ansible, #git, #greasemonkey, les tests auto et la supervision sont tes amis.
    Cordes frottées, grattées et frappées, sons soufflés, chantés ou beatboxés, sons électro ou scratchés me touchent. Rien de tel qu'une bonne soirée à jammer / à enregistrer pour un beatmaker / à débarquer sur scène pour accompagner quand il manque un instrumentiste / à repiquer des morceaux entiers sur papier à l'ancienne / à improviser avec les enfants
    Engagée #AMAP et pro #CNV

  43. I've mirrored a relatively simple website (redsails.org; it's mostly text, some images) for posterity via #wget. However, I also wanted to grab snapshots of any outlinks (of which there are many, as citations/references). By default, I couldn't figure out a configuration where wget would do that out of the box, without endlessly, recursively spidering the whole internet. I ended up making a kind-of poor man's #ArchiveBox instead:

    for i in $(cat others.txt) ; do dirname=$(echo "$i" | sha256sum | cut -d' ' -f 1) ; mkdir -p $dirname ; wget --span-hosts --page-requisites --convert-links --backup-converted --adjust-extension --tries=5 --warc-file="$dirname/$dirname" --execute robots=off --wait 1 --waitretry 5 --timeout 60 -o "$dirname/wget-$dirname.log" --directory-prefix="$dirname/" $i ; done

    Basically, there's a list of bookmarks^W URLs in others.txt that I grabbed from the initial mirror of the website with some #grep foo. I want to do as good of a mirror/snapshot of each specific URL as I can, without spidering/mirroring endlessly all over. So, I hash the URL, and kick off a specific wget job for it that will span hosts, but only for the purposes of making the specific URL as usable locally/offline as possible. I know from experience that this isn't perfect. But... it'll be good enough for my purposes. I'm also stashing a WARC file. Probably a bit overkill, but I figure it might be nice to have.

    #RedSails #archive #archival #archiving #warc

  44. 🎉 Behold, the latest over-engineered solution to a problem nobody had: yet another #string #search utility, because grep's five-decade reign obviously requires an AVX2-fueled #revolution. 🚀 If you believe a 5x speed boost will change your #grep game, brace yourself for a groundbreaking experience that totally justifies its memory-mapped existence. 🙄
    davidesantangelo.github.io/kre #overengineered #solutions #AVX2 #speedboost #HackerNews #ngated

  45. 🎉 Behold, the latest over-engineered solution to a problem nobody had: yet another #string #search utility, because grep's five-decade reign obviously requires an AVX2-fueled #revolution. 🚀 If you believe a 5x speed boost will change your #grep game, brace yourself for a groundbreaking experience that totally justifies its memory-mapped existence. 🙄
    davidesantangelo.github.io/kre #overengineered #solutions #AVX2 #speedboost #HackerNews #ngated

  46. 🎉 Behold, the latest over-engineered solution to a problem nobody had: yet another #string #search utility, because grep's five-decade reign obviously requires an AVX2-fueled #revolution. 🚀 If you believe a 5x speed boost will change your #grep game, brace yourself for a groundbreaking experience that totally justifies its memory-mapped existence. 🙄
    davidesantangelo.github.io/kre #overengineered #solutions #AVX2 #speedboost #HackerNews #ngated

  47. 🎉 Behold, the latest over-engineered solution to a problem nobody had: yet another #string #search utility, because grep's five-decade reign obviously requires an AVX2-fueled #revolution. 🚀 If you believe a 5x speed boost will change your #grep game, brace yourself for a groundbreaking experience that totally justifies its memory-mapped existence. 🙄
    davidesantangelo.github.io/kre #overengineered #solutions #AVX2 #speedboost #HackerNews #ngated

  48. Wanted to search all unique #systemd commands that end with 'ctl'. Systemd has a great NEWS file that covers most of the new features and changes, so that was a perfect source to query. The obvious question then is how to do that?

    Find all unique words in a file: linux-audit.com/data-processin

    #linux #grep #sort #uniq