I’m working on a bash script to compare two similar text files line by line and find the eventual differences between each line of the files, I should point the difference and tell in which line the difference is, but I should ignore the numerical values in this comparison. Example: In the example above, the script shouldn’t find any difference
Why are linux system calls different across architectures
According to this system calls table, linux system calls are different across architecture, but IMO syscalls are higher level encapsulation which do not depent on any specific architechture. Why is it designed this way? In a specific case, riscv64 linux doesn’t have mkdir, instead it has mkdirat, but weirdly it doesn’t have rmdir or rmdirat, how could it implement /bin/rmdir
Konsole not getting the full url when is a port (:) on it (on click)
Normally I use to do something like this when using express applications(Or any other type of application that involves a URL): But when I click on the URL my browser opens https://127.0.0.1 instead of http://127.0.0.1:7070. I remember that this was not the way it used to work, but not entirely sure. I am using Konsole(v22.04.1) over fish(v.3.4.1) (Fish does not
Valgrind message: Conditional jump or move depends on uninitialised value(s) unresolved
I’m trying a new assignment I’ve got: I need to copy the Environment variables from the shell into an array, then lowercase them and print them back. (I’m using Ubuntu 20.04.4 LTS, gcc for compiling, and writing my code in C language). I was advised to use malloc to create the array but decided not to. everything goes good up
How to convert a directory of XML files in to RRD Files
I need to restore rrd files from my exisiting xml files. So I have used following simple bash script. I could not execute following script due to this error, But I could restore files one by one. Can someone help me to solve this? Answer When you use: You will see that $i equals: /home/dump_xml/a.xml /home/dump_xml/b.xml You see, it contains
How can I add an IP address in a AWS CLI with out exporting
I am running below command to ingress in aws-cli, it is working fine if I provide an IP address, but I want it to know the IP and pass it. I was trying something like below but it is not helping If I am doing below then it works but I want it to be done by above way. Answer
Docker filter containers both by image name and age
I am trying to stop / prune docker containers according to 2 conditions: image name time they’ve been running for For instance, I could want to stop all containers from image image-name that have been running for over 24h. By reading the documentation, it seems the –filter option is not consistent at all since docker container prune has the until
I enable WebGPU in Chrome DEV, and it still doesn’t work
So, I have enabled the #enable-unsafe-webgpu flag and I even get a warning when opening Chrome, that “WebGPU is enabled and stability will suffer”. Yet, when trying to access any WebGPU example website, I get an error, stating that my browser doesn’t support WebGPU / WebGPU is not enabled. What can I do? I am using Ubuntu 20.04 and Chrome
How to connect paths in Docker file
I am running a Jenkins job, inside a docker container, this job requires doxygen but im getting an error saying – I have doxygen installed in my Docker image, but the path is – Inside my docker image, I want to connect this old path – /opt/fc4-usr-local/bin/doxygen with new path usr/bin/doxygen So whenever my job looks for doxygen it goes
Sorting a file using fields with specific value
Recently, I had to sort several files according to records’ ID; the catch was that there can be several types of records, and in each of those the field I had to use for sorting is on a different position. The fields, however, are easily identifiable thanks to key=value structure. To show a simple sample of the general structure: I