Comment by Kamil Maciorowski on i am not able to print sum of two columns...
Does this help? Piping tail -f into awk
View ArticleComment by Kamil Maciorowski on Issue with Activating Virtual Environment in...
Super User is a Q&A site. In your "question" you did not ask any question, then you put your solution into the "question". I answered, assuming the question is "why does the solution work? why...
View ArticleComment by Kamil Maciorowski on The `dd` command always gives me an error at...
(1) You don't need to "format" by writing zeros. Writing the image should be enough. (2) Without count=No space left on device is expected. Your attempt with count= is explained by the above comment....
View ArticleAnswer by Kamil Maciorowski for Issue with Activating Virtual Environment in...
"Activating Virtual Environment" means (or at least includes) adjusting the current interactive shell (e.g. its prompt) somehow. .VENV/bin/activate is a script containing shell code to do so.A shell...
View ArticleAnswer by Kamil Maciorowski for How to use crunch to generate a 8 char...
Your example A1B2C3D4 suggests the pattern should be ,%,%,%,%; this is the pattern used by this other answer. Then your comment mentions %,%,%,%, and "several like them", so probably you want to get...
View ArticleComment by Kamil Maciorowski on How to set a global variable from a bash...
Do not name a shell function test. test is a standard utility. Replacing it with an unrelated function is a bad idea.
View ArticleAnswer by Kamil Maciorowski for How to set a global variable from a bash...
AnalysisWhen executing a pipeline, Bash runs each part of it in a subshell. Changes made to the subshell environment cannot affect the shell's execution environment. You can think of the execution...
View ArticleComment by Kamil Maciorowski on print (only) line preceding a match
@umläute For the record: my sed solution is multi-line for readability, it can as well be sed -n 'N;/\n.*pattern/P;D'. I don't mind my answer not being accepted, I'm just noticing that: (1) Being a...
View ArticleAnswer by Kamil Maciorowski for print (only) line preceding a match
With sed:sed -n ' N /\n.*pattern/ P D'Normally the pattern space in sed contains a single line, the current line of input. It's like a one-line window that moves through the input as lines come.Here we...
View ArticleComment by Kamil Maciorowski on Extend option for partition is greyed out
Please post a screenshot of the Disk Management window with the greyed out option visible.
View ArticleAnswer by Kamil Maciorowski for How do I provide a disk partition devices for...
Modern losetup allows you to do this easily:-P, --partscanForce the kernel to scan the partition table on a newly created loop device. Note that the partition table parsing depends on sector sizes. The...
View ArticleComment by Kamil Maciorowski on Create writable Linux installation device
"I can burn that ISO onto my USB stick" – See this answer for insight.
View ArticleComment by Kamil Maciorowski on expect script inside bash doing remote ssh...
About the quotes: What are curly quotes and can I use them in my code?.
View ArticleComment by Kamil Maciorowski on Sudo user flag is not using the designated user
"when I know the -u flag should force it to ask for <admin-user> password" – How do you know? Is any option mentioned here in use? Please [edit] the question.
View ArticleComment by Kamil Maciorowski on Is there a way to display a countdown or...
Useless use of cat is the part to improve, the rest is nice. I use pv in my pipelines and I like the idea of re-purposing it to make a timer. +1.
View ArticleComment by Kamil Maciorowski on How to create writable Linux installation...
"I can burn that ISO onto my USB stick" – See this answer for insight.
View ArticleComment by Kamil Maciorowski on What is the command I should use to send a...
You can name any file image.tar.gz, but if this .tar.gz suffix means the image is tarred and then gzipped then you're missing tar -x on the remote side. But tar -x is not designed to work in the middle...
View ArticleComment by Kamil Maciorowski on Phones disconnect from router when port...
"This means that any requests from your mobile device are being forwarded to the Eufy camera hub, instead of being routed to the internet" – These requests come from the LAN side, do I get it right?...
View ArticleComment by Kamil Maciorowski on Phones disconnect from router when port...
A reasonable research effort is to check each rule separately and see if one of them alone causes the problem. So, which one? Each? Or does the problem occur only when the two rules work together?
View ArticleComment by Kamil Maciorowski on What is the command I should use to send a...
@vfclists Where did this rsync come from? Are you asking what ssh … is in my answer?
View Article