What I want to Achieve is:
I want to be able to display the (mp4 | jpg | ico) file types and execute the (js | css) file types on the browser only on my domain but I dont want them to directly access ...
I have a file in txt format that I want to convert to csv. Between each field there are blocks of spaces. The amount of spaces is not the same between every field.
Is there a command with sed or awk ...
I'm running an autopilot on a closed environment running Linux, and I've got a kernel thread whose priority I need to change. I'd prefer not to patch the kernel for this. This thread is created early ...
For wikidata I want to create QuickStatments to assign P1889 values for forts with identical names. This can be simplified to.
For a file with:
The following is a simplified version of a problem I'm struggling with. I have this file:
1 H 200 OK.Content-Length: 2422 x
2 H 403 Forbidden.z
and I tried to get sed to match the HTTP Status and - ...
I have a text file infile.txt that contains the following string:
[ A ]
[ B ]
[ D ]
I wish to use both grep and sed to print the lines that start with [ and end with ]. Thus my desired ...
How to delete the whole row when it starts with 'H' in a comma separated csv file for below example,
I am pretty sure my regexes are fine but they don't work with bash. I crafted them myself using https://unicode.org/charts/. As you will see, they work properly with awk.
Here are the ranges to spare ...
I have a bunch of files and directories containing white spaces (several of them in each file name) and I'm trying to remove them. I am plagged with the 'dumb' rename that does not understand regex. ...
I want to write a regular expression that only allows a user to enter an input which contains alphanumeric characters, underscores, periods, dashes, and plus signs.
In a bash script, I have:
I am on a closed network (i.e. no connectivity to the internet).
I have a bourne shell script that asks for the user to enter a regular expression for use with grep -P.
Generally speaking, I like to ...
I'm writing some shell script which asks the user for a domain name. I'd like to prompt the user for input in a loop, and write an error message, if the input is not a valid domain name.
I want to match lines that have foo unless the next line contains bar. So given a file containing:
1 foo 1
baz bar bap
only 1 foo 1 would print. I got this to work using a negative lookahead /...
How can I skip printing on the line that matches pattern. For remaining lines display with the corresponding printf until a new line matches another pattern.
Want I want is the Wht:, Grn:, and Blu: ...