Trending

#Grep

Latest posts tagged with #Grep on Bluesky

Latest Top
Trending

Posts tagged #Grep

Grepn 4 Linux Torvalds

Grepn 4 Linux Torvalds

Grepn 4 Linux Torvalds

#linux #Grep #Billgates #Linustorvalds #Darkhumor

programmerhumor.io/linux-memes/grepn-4-linu...

0 0 1 0
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.

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

0 0 0 0
Post image Post image

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

0 0 0 0
Preview
View CSV Files in Linux Terminal—No Spreadsheet Needed - OSTechNix Learn how to view, format, and inspect CSV files in the Linux terminal using column, cut, sort, grep, and less. No spreadsheet needed!

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

1 0 0 0
Preview
Grep for Humans You already know grep exists. You may even use it occasionally. What most people miss is that grep is not just a search tool. It is a…

I just published Grep for Humans medium.com/p/grep-for-h... #linux #grep

0 0 0 0
Preview
Grep with an AI Brain mgrep: AI-powered semantic grep—natural language code search, 2× fewer tokens, instant answers

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...

0 0 0 0
Original post on norden.social

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 […]

0 0 0 0
grep isn't what you think it means...
grep isn't what you think it means... YouTube video by LaurieWired

#grep 😉

0 0 0 0
Original post on bookmarks.kvibber.com

**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 […]

0 0 0 0

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

0 0 0 0
Preview
Tiny bug within the German UI: GREP style sub menu is missing "aus" Please add the German word " aus" (more correct: a space and the word aus) after "Mehrere Zeilen" in the GREP style sub menu within the German InDesign. This " aus" (= "off") is missing since at least v2016! Screenshot 1 shows the status quo, srceenshot 2 how it should look like (of course not in red color).

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

0 0 0 0

just learned the basic of grep sadly the pipe symbol isnt on qwertz keyboards

#grep

0 0 0 0
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.

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

1 1 0 0
Post image

🧠 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

1 0 1 0
Post image

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

1 0 0 0

The RAG Obituary: Killed by Agents, Buried by Context Windows #rag #llms #generativeai #limits #context #chunking #embeddings #reranking #complexity #retrieval #investigation #claudecode #files #grep

2 0 0 0
Preview
How To Search Inside Files In Linux Using Grep, Find And Ripgrep - OSTechNix Learn how to search inside files in Linux using grep, find, and ripgrep. Useful to debug configs, search logs, and explore codebases fast.

How To Search Inside Files In Linux Using Grep, Find And Ripgrep #Linux #SearchFiles #grep #find #ripgrep #Linuxcommands #Linuxbasics #Linuxhowto
ostechnix.com/search-insid...

1 0 0 0
'grep' - search for patterns in files - Video Man Pages
'grep' - search for patterns in files - Video Man Pages YouTube video by DistroTube

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

0 1 0 0
Preview
Otik | Monarch | Tickets | SESH.sx On September 12, 2025, Monarch in the United States will host a night dedicated to the pulse of techno, featuring an exceptional lineup that promises to deliver

Otik @ Monarch - 12 Sep feat. Otik, Alex Edward, grep + more

#SESH #Otik #AlexEdward #grep

0 0 0 0
Preview
Strut SF 4 year Anniversary feat. Danny Daze | F8 1192 Folsom | Tickets | SESH.sx Join us as we celebrate four transformative years of Strut SF, a journey through the pulsating heart of techno. On August 20, 2025, F8 at 1192 Folsom will trans

Strut SF 4 year Anniversary feat. Danny Daze @ F8 1192 Folsom - 20 Aug feat. Danny Daze, DWATA, grep + more

#SESH #DannyDaze #DWATA #grep

0 0 0 0
Acid August feat. Shaun J. Wright | Monarch | Tickets | SESH.sx Acid August signals the peak of summer sweat and sound at Monarch as singular selector Shaun J. Wright brings their hypnotic groove to the depths of downtown Un

Acid August feat. Shaun J. Wright @ Monarch - 15 Aug feat. Shaun J. Wright, Lil Sur, grep + more

#SESH #ShaunJWright #LilSur #grep

0 0 0 0

Turns out that llms were built on top of linux commands like grep.

#linux #sysadmin #llm #chatbot #grep

0 1 0 0