Skip to content

Tag: linux

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…

Jenkins API response tuning

We have built a dashboard on top of Jenkins which enables users to see only jobs relevant to the project and also trigger a build. The UI is built using reactJS and the backend is JAVA REST WebServices. WebService calls the Jenkins api to fetch Job information and converts the data to JSON for feeding the UI.…