How can I “grep” patterns across multiple lines?
It seems I am misusing grep/egrep.
It seems I am misusing grep/egrep.
I have a text file which I want to split into 64 unequal parts, according to the 64 hexagrams of the Yi Jing. Since the passage for each hexagram begins with some digit(s), a period, and two newlines, the regex should be pretty easy to write.
I have a large dictionary file with 300,000+ words in it and I’m trying to find all words with the vowels aeiou in that order and have only exactly 5 vowels. My current attempt does not seem to be working and for the life of me I don’t understand why.
Look at this if block:
I’m trying to check if an input is an integer and I’ve gone over it a hundred times but don’t see the error in this. Alas it does not work, it triggers the if statement for all inputs (numbers/letters)
Using https://regex101.com/ I built a regular expression to return the first occurrence of an IP address in a string.
I am working with some text that is full of stuff between brackets [] that I don’t want. Since I can delete the brackets myself, I don’t need the one-liner to do that for me, but I do need a one-liner that will remove everything between them.
I’m trying to currently rename a large set of files and have been using quite kludgy methods to do so, such as:
I just wanted to ask whether there is any command which would work on common shells (bash, dash, kornshell)? It is supposed to check if the line variable contains any part of the path.
I have a list of replacements like so: