Which linux command is used to find numbers or words between two different characters (first will be a word and last will be symbol)? [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
Improve this question
“With clarity and definition is associated *"id"='o123-3923-d2i71-0129p' ,a certain physical spareness. Most of the "id"='s0987-3923-d2i71-0129p' great deciduous trees of England give one the impression, at any rate in summer, of being rather o "id"='p4523-3923-d2i71-0129p' ,bese. In Scandinavian mythology Embla, the elm, was the first woman. Those who have lived "id"='o123-3923-d2i71-0129p' ,much with old elm trees—and I spent a good part of my boyhood under their ponderous shade—will "id"='m0962-3923-d2i71-0129p' ,agree that the Scandinavians were men of insight. There is in effect something blowsily female about those vast trees that brood with all their bulging masses of foliage above the meadows of "id"='o123-3923-d2i71-0129p' ,the home counties.
Here I want to get only id. Output:
"id"='o123-3923-d2i71-0129p' "id"='s0987-3923-d2i71-0129p' "id"='p4523-3923-d2i71-0129p' "id"='o123-3923-d2i71-0129p'"id"='m0962-3923-d2i71-0129p'"id"='o123-3923-d2i71-0129p'

Try this:
#! /bin/bash
exec <<EOF
“With clarity and definition is associated *"id"='o123-3923-d2i71-0129p' ,a certain physical spareness. Most of the "id"='s0987-3923-d2i71-0129p' great deciduous trees of England give one the impression, at any rate in summer, of being rather o "id"='p4523-3923-d2i71-0129p' ,bese. In Scandinavian mythology Embla, the elm, was the first woman. Those who have lived "id"='o123-3923-d2i71-0129p' ,much with old elm trees—and I spent a good part of my boyhood under their ponderous shade—will "id"='m0962-3923-d2i71-0129p' ,agree that the Scandinavians were men of insight. There is in effect something blowsily female about those vast trees that brood with all their bulging masses of foliage above the meadows of "id"='o123-3923-d2i71-0129p' ,the home counties.
EOF
grep -oP '"id"='\''\w{4,5}-\w{4}-\w{5}-\w{5}'\'
Btw: Lorem ipsum is a good way to generate random text data, which gets easily understood by everyone. There are many online generators available.

Related

Matching data via AWK and merging fields [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 days ago.
Improve this question
I've been working through this for a bit and I'm pretty sure it is something easy I'm missing (sometimes too much time at a command line does that) and I'm hoping someone can lend a quick hand on how to accomplish this.
I have two files with different numbers of columns, but with one data item that I'd like to use for matching:
File1.txt
703e.ac65.7cdc,UserA
b035.b5e8.48cd,UserB
e0b5.5fdb.d394,UserC
...
File2.txt
0002.75e5.49a3,AP1,30
703e.ac65.7cdc,AP2,32
02d5.44b9.f88a,AP2,33
e0b5.5fdb.d394,AP3,30
...
I'd like to generate an output where ",UserX" is added to the row in File2 when column 1 of File1 and File2 matches similar to this below:
703e.ac65.7cdc,AP2,32,UserA
e0b5.5fdb.d394,AP3,30,UserC
I've been fiddling with sed to do this but there might be a better tool. Thanks for the help / taking a look / offering your advice!

in linux, is there any way to rotate my screen arrangement via the command line? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 days ago.
Improve this question
I am running MATE desktop with 4 monitors. I maximize 4 app windows across these but my neutral neck/eye-line position is comfortable with the lower left one. Right now when I need to look at the other monitors I have to move my neck around (which I do not mind occasionally) but when I need to work on them I either move the window to my main monitor (lower left/3rd quadrant) covering up the original app that is displayed there, or just glance towards that monitor which is okay for a few minutes but strains my neck a bit if it goes beyond 5 mins or more.
the most efficient way I can think of this is to shuffle the displays around (clockwise or counterclockwise) via a key combination.
I am aware about SHIFT+Fn key+arrow keys which throws the active window around but this isn't what I'm looking for.
A bit of googling led me to xrandr commands which changes the display orientation but not (or I haven't found the command yet) the screen ordering. I'm not sure if I'm using the terms correctly thus it might be affecting the quality of the search results.

what is the '¬' character called and what is it for [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 months ago.
Improve this question
I do not ever think I have ever had a need to type this character "¬", and so I was wondering what it is called and what it is for and why it is on the my keyboards (both my UK and EU keyboards)? I assume that it had some common function back in the 1970's maybe, but I'm curious what that might be as I'm almost completely certain that I have never once in over 25 years ever had a need to type this character for anything. I do use the tilde character "`" a lot, but never the shift-variant on that key of the "¬".
Part of the reason that I am asking this is that I might use it as an AutoHotkey trigger, since it seems so completely useless to me, but I was curious about what it might be for etc before I do that.
It's the logic negation symbol.
It's used in some programming languages as a mean to negate a boolean value, particulary old languages
The ¬ character is also used in AppleScript to force a long line of code to break onto the next line. On a French Mac keyboard, you get it with Option (alt) "L", which has a kind of logic to it :)

Why are lenses needed for Google Cardboard? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Can't the app include computation correction for the image displayed to a standard retinal distance? For that matter why not "correct" the image displayed per the "optics" of each user? One could use a little bit of existing hardware (eg: a bluetooth touchpad) to take the graphic inputs needed to define a "corrective/computational" reverse-Amsler grid.
Just a newbie here w/ a question and perhaps a vision/application well before VR. thanks.
The lenses are needed so you can focus on the screen when it is so close to your eyes. Moving the device further away isn't the best option, in part because it reduces the available field of view.
From oculus documentation:
The lenses in the Rift magnify the image to provide a very wide field of view (FOV) that enhances immersion
The lenses allow for a wider field of view keeping the screen size small at the same time.
See this YouTube video for a very interesting insight.

How do you come up with a good name for a website or software you are building? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
How do i come up with a good name for a website or software I am developing. Are there references for naming websites or software?
think of a rude word to use as an acronym, and then fit in the words to make that acronym fit.
SHAFTED was the code name of one internal project I was working on
Shipment
Help
And
Full
Tracking of
Export
Documentation
OTIS was the clean version I used around managers (Order Tracking Information System)
I let my creativity flow and write up 5-10 names.
Then i google them.If one of them is not in use, i take it. :)
I want to be the names unique ;)
Personally? I don't, they're all horrible. But after a couple days of working on the project it's just a group of letters that means "work left to do," regardless of what I called it. :)
Here is an idea from Paul Graham's Why Smart People Have Bad Ideas essay,
[4] I wrote a program to generate all
the combinations of "Web" plus a three
letter word. I learned from this that
most three letter words are bad:
Webpig, Webdog, Webfat, Webzit,
Webfug. But one of them was Webvia; I
swapped them to make Viaweb.

Resources