« first day (2037 days earlier)    last day (1 day later) » 

04:04
2
Q: How can I make jq assign values to environment variables in one command?

ShuzhengSay, I provide jq with the following JSON body as input: {"person1": {"name": "foo"}, "person2": {"name": "bar"}} Is it possible to have jq assign person1.name to environment variable PERSON_1_NAME and person2.name to environment variable PERSON_2_NAME, so that I don't have to run jq multiple ti...

 
3 hours later…
07:03
[ SmokeDetector | MS ] Bad phone number in body, phone number detected in body (199): ¿Cómo puedo contactar a JetBlue en español%H%E%L%P%‭ by Deepak Suryavanshi‭ on unix.SE
 
9 hours later…
15:58
3
Q: what is the meaning and usage of 2>&1 | tee /dev/stderr

user1169587for the following command output=$(cat $file | docker exec -i CONTAINER COMMAND 2>&1 | tee /dev/stderr) what is the meaning and usage of 2>&1 | tee /dev/stderr? I google and 2>&1 means "combine stderr and stdout into the stdout stream." tee mean "reads from standard input and writes to standard...

16:52
[ SmokeDetector | MS ] Bad keyword in title, bad phone number in body, potentially bad keyword in body (199): What is the first thing you do when you get hacked on Facebook?‭ by GTR SK‭ on unix.SE
 
2 hours later…
19:19
3
Q: Find items by name, and print out if they are files of directories?

sdbbsConsider the following example: mkdir /tmp/test2 && cd /tmp/test2 mkdir -p aa/{tmp,src} mkdir -p bb/aa/{tmp,src} mkdir -p {dd,ee}/bb touch {dd,ee}/bb/aa tree | awk '{print "# " $0}' # . # ├── aa # │   ├── src # │   └── tmp # ├── bb # │   └── aa # │   ├── src # │   └── tmp # ├── cc # │   ...


« first day (2037 days earlier)    last day (1 day later) »