Programming
How to mark certain C code to be packed and inserted in an ELF section
Oct 19th
I am working on improving performance of my user space application in Linux. The frequently executed code is distributed across lots of files. I would like to mark certain portion of code in all files to be together without modifying or moving the code physically. In otherwords, I want all the CPU instructions of frequently executed path to be together. Is there a way to mark the code for a specific ELF section. Later once it is done, I may chose to lock the code present in this section on the CPU cache.
How do you delete all the text after the first space in a line using bash script
Jan 24th
I have a file or input like the following:
joe wants to be a doctor lisa like to learn swimming michael learns to rock
I would like to remove all the text after the first space in each line and want to get output like following:
joe lisa michael
Please tell me a simple way to do this in a bash script or at command line. Thanks!
How to add a pause in a bash script
Jan 23rd
I want to write a simple script to display the number 1, wait one second, display the number 2, etc. How do I add a pause?
Also how can I wait for user input (like ENTER key) in a bash script?
How to find files that are modified on specific date
Jan 22nd
I need to write a bash script that scans current directory and all its sub directories for files that are modified on a specific date.
It would be great if you can mention how to do the following as well.
1) Files modified on or after a specified date
2) Files modified between two dates
3) all the above cases with specified time


Recent Answers