minus-squareVal@lemm.eetolinuxmemes@lemmy.world•Almost as annoying as the windows evangelistslinkfedilinkarrow-up3·edit-23 months agointeresting you used grep because it’s a command that has a very clear origin. in ed/vi the g command was used to run commands on some pattern. eg g/[regex pattern]/[command] the p command was used to print current line so to print any line that matched the string “grep” you would do: g/grep/p. when this was made into a seperate command it was called grep: g/re/p. using re to denote regex. linkfedilink
Val@lemm.ee to Programming@programming.dev · 6 months agoI made a thing.plus-squarecodeberg.orgexternal-linkmessage-square0fedilinkarrow-up10
arrow-up10external-linkI made a thing.plus-squarecodeberg.orgVal@lemm.ee to Programming@programming.dev · 6 months agomessage-square0fedilink
interesting you used grep because it’s a command that has a very clear origin.
in ed/vi the g command was used to run commands on some pattern. eg
g/[regex pattern]/[command]
the p command was used to print current line so to print any line that matched the string “grep” you would do:
g/grep/p
.when this was made into a seperate command it was called grep:
g/re/p
. using re to denote regex.