Skip to content

How to download URLs from the website and save them in a file (wget, curl)?

How to use WGET to separate the marked links from this side? Can this be done with CURL? I want to download URLs from this page and save them in a file. I tried like that. wget -r -p -k Link Gopher separated the addresses. EDITION. How can I download addresses to the file from the terminal? Can it

slcand error : Inappropriate ioctl for device

I want to use can interface with slcand, but I have a problem. To link can device(canable) with slcand, I make symbolic link with udev-rule SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, ATTR{product}==”canable gs_usb”, ATTR{serial}==”002900355934570820373433″, SYMLINK+=”cantest2″ It successfully made symbolic link “/dev/cantest2”. However, when I use command “sudo slcand -o -c -s8 -F /dev/cantest2 can8”, I got a error message enter image description here I

Php Imagick error: undefined symbol FT_Done_MM_Var, how can i fix it?

Complete output: Warning: PHP Startup: Unable to load dynamic library ‘’ (tried: /opt/lampp/lib/php/extensions/no-debug-non-zts-20190902/ (/lib64/ undefined symbol: FT_Done_MM_Var), /opt/lampp/lib/php/extensions/no-debug-non-zts-20190902/ (/opt/lampp/lib/php/extensions/no-debug-non-zts-20190902/ cannot open shared object file: No such file or directory)) in Unknown on line 0 My OS: Fedora 36 Installed packages: ImageMagick ImageMagick-devel ImageMagick-perl php php-common php-pear php-devel gcc php-imagick. installed via pecl in xampp Answer Ok, to install imagick

create multiple file with content in linux with user input

I’m new in bash scripting and I’m trying to create a bash script which can create multiple file with content (around 10000 lines [no matters what text]) but with user input. I made a script which create files (see below) but how can I fill each file with 10000 lines? Thank you in advance! Answer Replace your touch command with

Docker mount volume specify path

please I really need help creating a docker volume. By default, when I create a volume, its location will be /var/lib/docker/volumes/ I need to change this default location to my SSD disk, specifically /media/username/T7/docker/volumes Please how do I make sure the docker I run will be stored in my SSD rather than the default location? I will be using this

How to sort files by word count in linux?

I have to sort files in current directory based on word count by using command wc and pipe | necessarily. What command do I have to use? I thought I had to use a command sort | wc -w, but I failed. Answer I think this can help. The ls -1 will list all files of the current directory, and

Formating window values with jq

I would like to take the json output of window values from a program. The output of it currently is: But I need it to be formatted like: 3067,584 764×487. How would I go about doing this using jq or other commands? I’m not very experienced with jq and json formatting in general, so I’m not really sure where to

Using sed regex for string replacement

I am trying to replace a string in the config file. I would like to run something like this: OS (docker image php:8.1-apache-buster) Debian GNU/Linux 10 (buster) sed (GNU sed) 4.7 Packaged by Debian Possible inputs: Example output (any user given value): Example cmd: Joining regex with strings does not work here. It works when I run string replace without