Hi i have a txt file with last name and name of people, now i want do use egrep to only display the names of the people with the same last name. I have no idea how i could do this. Thanks for help my txt looks like this: and the output should be: I’ve currently tried running: …but this
How do not write provided characters to bash stdout when program interrupted on getpass?
I have the simple code witch get password by getpass: Also I have a signal handler witch exit program. If signal was caught at the time of getting password from terminal, program stops, but all provided by user characters appears on bash prompt. Code of signal handler: How can I make bash prompt clear after i…
Unable to import paramiko
I wrote a Python script on my laptop(written in 2.7.14) which makes use of paramiko module. It runs just fine on my laptop. I moved this script to a linux box & while running it, I get an error saying paraniko not found which is of course because the linux machine where I moved the script to doesn’t…
How to Expand OS disk on a Linux VM using Cloud Shell?
I have a little problem with a production Classic VM. I reached the maximum capacity of the disk, and I need to expand it. So I tried: then the result: I don’t understand why there is no VM in the resource group, so I tried to list what is in the resource group^ and the result: So I have a
AWS NFS mount needs to be moved to AZure
read this mount -t nfs vs cifs already 🙁 ? Our requirement is that we have an application hosted in AWS using nfs-utils to mount a EFS for use ? My question is how can this be done in Azure. I know they have Azure files which works in quite similar way to EFS but as per azure documentation it
How the parent is restored after vfork()
As vfork creates the child process in the same address space as that of the parent, and when execv() is called on the child then how is the parent process restored, as exec loads the file and runs it in the same address space of the parent and hence the child? Answer When execv follows a true vfork, it does
A script wrapper that turns SIGINT into SIGHUP
I use Leiningen REPL that uses SIGINT to interrupt currently running code and to output a new prompt. The REPL can be stopped using SIGHUP or SIGKILL. I don’t actually run anything in the REPL – I just use it for some pre-defined side-effects. The problem is that IntelliJ IDEA can only send SIGINT…
weird issue with time function in C
I’m trying to get my Beaglebone Green to read an input from a certain pin, and when that pin sees a 1 to 0 transition (defined in pulse()), then it should set a timer. I want to make my timer like this: In idle, the timer is set to a TIMER_HOLD value (900000) To start the timer, I set it
Will process’s RES memory drop after memory freed?
I have a process which continuously allocates memory and will free it after another thread have processed related data. When the data processing rate is slow, I see RES memory grows up; but after all the data have been processed, RES goes down but doesn’t go back to original RES value (even after waitin…
Linking shared objects at runtime depending on user configuration
TL;DR I have a library I want to use in my program which comes in two different versions. Both versions provide the same interface but differ in options used to compile them. I now want to use a specific version of the library, however, since both versions are suitable for different tasks and the user should …