Grepn 4 Linux Torvalds
Grepn 4 Linux Torvalds
#linux #Grep #Billgates #Linustorvalds #Darkhumor
programmerhumor.io/linux-memes/grepn-4-linu...
Latest posts tagged with #grep on Bluesky
Grepn 4 Linux Torvalds
Grepn 4 Linux Torvalds
#linux #Grep #Billgates #Linustorvalds #Darkhumor
programmerhumor.io/linux-memes/grepn-4-linu...
La commande magique ? La voilà : $ grep -a -C 2000 "global_objects\.add" /dev/sda2 | tee recovered_data Oui, c'est juste grep. La magie de Gnunux : pas besoin d'installer un logiciel de récupération de données complexe et chiant à utiliser, c'est juste une bête commande disponible partout. Explications : grep, vous connaissez sans doute, ça va tout simplement chercher une chaîne de caractères dans un fichier, et vous la renvoyer avec plus ou moins de lignes de contexte ; -a est une option qui signifie qu'on veut traiter les fichiers binaires « comme si » c'était des fichiers textes : normalement la commande ne marche que sur du texte, mais si vous voulez chercher une chaîne de caractère dans les octets qui composent une image JPG, libre à vous ; -C 2000, « C » pour contexte : si la chaîne de caractères est trouvée, je veux que grep me renvoie les 2000 lignes qui « entourent » la ligne où la chaîne apparaît. Comme mon script faisait dans les 1000 lignes, j'ai tapé large. Vous pouvez aussi jouer avec -B (pour before) et -A (pour after) pour avoir un contexte non-symmétrique ; "global_objects\.add" : une chaîne de caractères dont je me rappelais qu'elle était présente dans le script en question. Si vous avez perdu un texte, essayez de vous rappeler d'un titre ou d'une séquence de mots spécifique. Pour ma part, je me souvenais qu'à un moment, je remplissais un set nommé global_objects ; /dev/sda2 : le truc magique, c'est que grep peut tourner sur une partition complète ! Ici, la partition qui correspond à un mon dossier perso ; tee recovered_data : ça, c'est optionnel, mais ça permet, lorsque la chaîne est trouvée, à la fois de l'afficher et de la stocker dans le fichier recovered_data. Pour faire simple : on demande à grep de scanner l'intégralité du disque dur (ou de la partition en question) comme si c'était un gros texte, et si jamais il trouve la chaîne global_objects\.add, de nous afficher les 2000 lignes de texte qui l'encadrent.
🗃️ 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-rit...
#BD #GriseBouille #humour #grep #script #GNULinux #Linux
To end a debate over the performance differences between \K and positive lookbehind, I wrote a benchmark comparing the two. \K is faster, varying between 1.9 and 8.5 times faster, depending on the size of the document. #InDesign #grep
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-fil...
#CSV #Linuxcommands #Linuxbasics #Linux #DataInspection #Column #Sort #Cut #Grep
mgrep: drag grep into 2025, semantically search your repo in seconds, cut tokens in half. Is your codebase ready to stop guessing keywords?
#mgrep #Grep
open.substack.com/pub/pythonli...
Mastodon is my main source of interesting new weblinks. I wondered if one can extract and save all that links to file.
So, I made a #shell script that can extract all weblinks from a Mastodon user's outbox, basically using #curl, #sed, and #grep […]
#grep 😉
**It's Past Time To Stop Using egrep & fgrep Commands, Per GNU grep 3.8**
"The egrep and fgrep commands have been deprecated since 2007"
...which means the post-install script for Vivaldi's RPM really ought to be updated! "egrep: warning: egrep is obsolescent; using grep -E"
#GNU #FOSS #grep […]
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
Ein fehlendes "aus" kann hier und da problematisch sein. In diesem Fall hat es seit mindestens 2016 offenbar niemanden wirklich interessiert.
Trotzdem wäre es natürlich tippitoppi, wenn das mal gefixt wird. Mit deiner Stimme bei Uservoice könnte das was werden. Danke im Voraus!
#InDesign #GREP
just learned the basic of grep sadly the pipe symbol isnt on qwertz keyboards
#grep
Image titled “Wow That’s Fascinating – The History of the grep Command.” The design resembles a retro computer terminal screen, with green monospaced text on a black background framed by a gray border. Text reads: “Created by Ken Thompson, grep searches through text using patterns. Its name? ‘Global Regular Expression Print.’ It became a cornerstone of Unix power tools—small, fast, and devastatingly useful.” At the bottom left, in small green text, is vintage.computer, and at the bottom right is a small green computer chip icon.
Did you know the Unix command grep, created by Ken Thompson, stands for “Global Regular Expression Print”? It became one of the most indispensable Unix tools: small, fast, and incredibly useful. #VintageComputing #Unix #grep #KenThompson #TechHistory
🧠 Master Linux One Command at a Time
🔍 grep — Search with power. Find specific text within files instantly. ⚡
#Linux #grep #CommandLine #SysAdmin #DevOps #Bash #Terminal #LinuxTips #OpenSource
Master Linux One Command at a Time
grep — Search with power. Find specific text within files instantly.
#Linux #grep #CommandLine #SysAdmin #DevOps #Bash #Terminal #LinuxTips #OpenSource
The RAG Obituary: Killed by Agents, Buried by Context Windows #rag #llms #generativeai #limits #context #chunking #embeddings #reranking #complexity #retrieval #investigation #claudecode #files #grep
How To Search Inside Files In Linux Using Grep, Find And Ripgrep #Linux #SearchFiles #grep #find #ripgrep #Linuxcommands #Linuxbasics #Linuxhowto
ostechnix.com/search-insid...
This is a great series of #Linux videos by #DistroTube.
It's called Video Man Pages and DT shows you how to use different commands.
It's a great way to see commands in use and get a feel for what they do. I highly recommend these.
This video is about 'grep'
#grep #cli #terminal
Otik @ Monarch - 12 Sep feat. Otik, Alex Edward, grep + more
#SESH #Otik #AlexEdward #grep
Strut SF 4 year Anniversary feat. Danny Daze @ F8 1192 Folsom - 20 Aug feat. Danny Daze, DWATA, grep + more
#SESH #DannyDaze #DWATA #grep
Acid August feat. Shaun J. Wright @ Monarch - 15 Aug feat. Shaun J. Wright, Lil Sur, grep + more
#SESH #ShaunJWright #LilSur #grep