I am using Lubuntu 19.04. I have a file called text which contains a mixture of upper case and lowercase characters. I am trying to replace all of these characters with ‘*’, but I’m being given an error message. This is my code : sed ‘s/[A-z]/*/g’ text I was expecting an output of stars (*) to be shown on the
makefile : How to link object files
I have makefile and I need to link two objects into “main” object They are -> oglinet.o and libshape.o their path in system -> home/pi/openvg/ Problem :I need to write full path and objects name(home/pi/openvg/libshapes.o) is possible to “make” them as Makefile variable for example home/pi/openvg/libshape.o into $(OBJ1) in makefile rule ? Tried to make them as variable for example
How to compare two files containing many long strings then extract lines with at least n consecutive identical chars?
I have 2 large files each containing long strings separated by newlines in different formats. I need to find similarities and differences between them. The Problem is that the formats of the two files differ. File a: File b: So now I want to extract the whole line containing NjA5MDAxNdaeag0NjE5NTIx.XUwXRQ.gat8MzuGfkj2pWs7z8z-LBFXQaE from File a to a new file and also delete
How to make a one-window program with GTK, python and glade?
I’d like to write a program that has one main window and if I click on a button it changes the content of the window (or something similar) and the user can go back after that to the “home page”. I’m using python3, gtk3 and glade on Ubuntu 19.04. Here’s the example.glade XML file And here’s the Python3 file I’d
capturing words between double quotes in awk
I’m trying to print the name of my Linux distribution. The output of cat /etc/os-release for my distro is: Now I want to grab the Arch Linux from the second line. I used this command: But this prints PRETTY_NAME=”Arch How can I grab the words (including space) from this line? Answer Setting the field delimiter to double quotes -F'”‘ to
can not connect to postgres db from node server
I want to connect my apps nodejs using node-posgres to PostgreSQL. My apps in linux server and my postgresql in another linux server by 176.9.154.123 IP. this is my error: this is my pg_hba.conf: Answer i can solve this problem by add this line to postgressql.conf:
Create filename based on file output in shell
I’m looking to create files with names based on the command output of the previous command i.e. if i run So that the output of the amount of files of that type is the filename of the created file. Answer Here’s a solution that renames the file after it has been created: What is happening in this one-liner: find .
why virtual address of LOAD program header and runtime virtual address shown by gdb is different?
I’ve been trying to understand elf file format and on elf format documentation, VirtAddr of LOAD header should be the virtual address of the loaded segment. But gdb memmap shows segments to be loaded at different virt address. gdb memmap Answer VirtAddr of LOAD header should be the virtual address of the loaded segment. This is only true for ELF
How to avoid creating tmp-Files on Linux?
I have a program that needs to access a file. The content of this file is in a variable and I want to avoid creating a real file. Is it possible to create some kind of virtual file?? Normally I would pipe this to the command, but STDIN already “in use”. Is there any way to pass both variables to
How to extract names of compound present in sub files?
I have a list of 15000 compound names (file name: uniq-compounds) which contains names of 15000 folder. the folder have sub files i.e. out.pdbqt which contains names of compound in 3rd Row. (Name = 1-tert-butyl-5-oxo-N-[2-(3-pyridinyl)ethyl]-3-pyrrolidinecarboxamide). I want to extract all those 15000 names by providing uniq-compound file (it contain folder names e.g ligand_*) out of 50,000 folder. directory and subfiles