Comment by Kamil Maciorowski on tail -f does not follow files on WSL
Does this help? stackoverflow.com/q/69331285/10765659
View ArticleComment by Kamil Maciorowski on How to detect if “/dev/mapper/dev0” exists in...
test -e /dev/mapper/dev0 is exactly equivalent to [ -e /dev/mapper/dev0 ] the OP has tried. Any of them is the right command, so the problem must be elsewhere.
View ArticleComment by Kamil Maciorowski on How to detect if “/dev/mapper/dev0” exists in...
The answer to the tile is [ -e /dev/mapper/dev0 ] you have tried. test -e /dev/mapper/dev0 is exactly equivalent. What do you mean by "that didn't seem to work"?
View ArticleComment by Kamil Maciorowski on How to detect if “/dev/mapper/dev0” exists in...
What is "a second bracket to the IF statement"? This answer is cryptic, I cannot imagine it will help any future user with a similar problem.
View ArticleComment by Kamil Maciorowski on Search and replace doesn't work with sed...
Please [edit] and provide mcve: some specific values of $search_string, $replace_string and $filePath for which the problem occurs.
View ArticleComment by Kamil Maciorowski on Execute self-extracting bash script (with...
What if the binary data contains null byte(s)? Will your method work?
View ArticleComment by Kamil Maciorowski on Moving directories that names end in - number...
@terdon Because of how I interpreted "I would like to move the matching folders to the Destination folder".
View ArticleComment by Kamil Maciorowski on merge numbered files from different...
@user3446323672 I reverted the question to the revision that is answered. In the future, please do not substantially change requirements after getting answer(s). You can see your edits in the revision...
View ArticleComment by Kamil Maciorowski on How to detox filenames in a bash script with...
Probably while read FILE1 is to blame. See Understanding IFS= read -r line. Then ""$FILE1"" is an empty string, unquoted $FILE1 and another empty string – totally equivalent to unquoted $FILE1, thus...
View ArticleComment by Kamil Maciorowski on How can I do Ctrl-Z and bg in one keypress to...
The question is tagged zsh. zsh does not use .bashrc. In interactive zsh your command results in can't trap SIGSTP in interactive shells. In interactive bash the command itself "works", but since...
View ArticleComment by Kamil Maciorowski on How do I change the value from Regedit of my...
From the help center: you should only ask practical, answerable questions based on actual problems that you face. What is the actual problem then? Please make sure there is no XY problem here. [Edit]...
View ArticleComment by Kamil Maciorowski on This use to work --- Now, it seem like "-p "...
What is the desired result? What is the actual result? Is this the problem? tmux not splitting panes with desired percentage size.
View ArticleComment by Kamil Maciorowski on It seems like "-p" sizing longer works with...
"Before a recent update" – It may be days or weeks before you get an answer; and the question (answered or not) will probably exist for years. What update is the "recent update" then? What is the...
View ArticleComment by Kamil Maciorowski on CURL fails with exit code 18 for SFTP with...
"Like the double-slit experiment, it doesn't allow me to see what's going on" – Ah, a heisenbug.
View ArticleComment by Kamil Maciorowski on How to find duplicate files then remove...
"running some version of Linux" – What "version" exactly? In some distros you can easily install and use jdupes or fdupes.
View ArticleAnswer by Kamil Maciorowski for How to combine wordlists in Linux
SolutionFor newline-terminated lists (like /usr/share/dict/words) in files named input1 and input2:join -t "$(printf '\n')" -1 2 -2 2 -o 1.1,2.1 input1 input2 | paste -d '' - -Explanationjoin will...
View ArticleComment by Kamil Maciorowski on Is there a tool like `dd` but respect...
I guess an elegant solution would be to develop support for offset (like dd's seek=) in bmaptool copy.
View ArticleComment by Kamil Maciorowski on linux + wipe a signature from a device not...
I guess you need to make LVM stop using the devices. Do you want to totally remove (dismantle) the logical volume(s) and the volume group that use the devices? Or do you want to keep them (using/adding...
View ArticleComment by Kamil Maciorowski on Steam reads registry key constantly
"but it's causing very much had drive traffic" – If trying to read again and again one and the same short piece of information from a hard disk causes "high hard drive activity" then the OS does very...
View ArticleComment by Kamil Maciorowski on In Linux with limited features (NAS box), how...
"running some version of Linux" – What "version" exactly? In some distros you can easily install and use jdupes or fdupes.
View Article