Skip to content

Convert curl request into http request?

I am trying to convert the curl request below into an HTTP request for the postman tool. The postman tool might not really matter in this question. Please tell me how I can convert curl to http. What I tried/learned: – Set headers content-type: json/application, X-apiKey from curl docs, -d option means …

Print grep Keyword if grep find a match

I have an input file Input.txt with the following sample keywords: I also have a file Text.txt to search such as: I want to print grep Keyword followed by a match if the grep finds a match. The desired output: Answer With awk you could do something like this: In a more readable format it would be:

Compiling Python 3.6: Can I delete src folder after make install?

On my ubuntu 16.04 I just executed Can I delete src/Python-3.6.0 folder? Answer @realtbo As you make installations using sudo command in LINUX, it is never suggested to delete those files. Any file which is in user is always meant to be kept alive. Deleting these files may cause your environment to break, whi…

Which perf events can use PEBS?

I want to understand which events can have the precise modifier on my CPU (Sandy Bridge). Intel Software Developer’s Manual (Table 18-32. PEBS Performance Events for Intel Microarchitecture Code Name Sandy Bridge) contains only the following events: INST_RETIRED, UOPS_RETIRED, BR_INST_RETIRED, BR_MISP_R…