Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Tag: linux
How to add a string to line 13 in my text file
I have a very large text file that is difficult to open in text editors. Lines 12 – 15 are: I would like to add: 3 196 to line 14 and then have a blank line between 3 196 and Atoms like it is currently. I tried: But it did not seem to change anything. Anyone know of how I
Docker won’t bind to address; says it’s in use but it isn’t
I’m trying to bind two ports from a docker container to a currently unused IP address on one of the host machine’s interfaces. I’m attempting to start the container (which is based on the centos/systemd image) like this: and it fails with the message: Error starting userland proxy: listen tc…
Remove first 3 characters and last 1 character from all mp3 files in all subdirectory
In base directory i have folders like this: so in each of them i have files like so i want to remove first 3 characters and last 1 character so files will look like this i tried this also this is not working in subdirectories it is just if files are in base directory Answer You may use this while
bash printf not working – decimals [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 4 y…
Symbolic link difference between cp -sr and ln -s [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
GNU Parallel – How to capture the output in files with names using input argument
Running the parallel command as: I want the respective output to be in files with names: – log_user1_tag1.txt – log_user2_tag2.txt Answer Figured out the way:
Why doesn’t this attempt at using sys_write do anything?
Here it is: Not only does this code not segfault, it also outputs nothing. According to what I’ve read, a program should call sys_exit, or it would segfault, but this does not happen. Answer This instruction will interpret the data at “msg” as 64-bit value and load that value into the regist…
Why gdb backtrace syscall address is different from syscall table address
I’m really confusing with syscall address. 1 now I hook a syscall(fake_sendto) replace real syscall(sct[__NR_sendto]), and it workes normally. now I dmesg to show logs: ok, I think the truely sys_sento address is above 0xffffffff8156b2c0 but when I write a test program, gdb print sendto function address…
Increment variable when matched awk from tail
I’m monitoring from an actively written to file: My current solution is: However when attempting to do this with AWK I don’t get the output – the $ws_trans and $sc_trans remains 0 Attempting to do this to reduce load. I understand that AWK doesn’t deal with bash variables, and it can g…