Skip to main content
Advice
0 votes
1 replies
20 views

First, I ran the command git clone <url> 'foo', but the process was terminated because the drive was full. Then, I tried mkdir foo. Although the command exited with status 0 (no outout), the ...
Xiaowei Dai's user avatar
Advice
0 votes
2 replies
53 views

i need to make cmd file that copying "Merge.txt" from the same path directory of cmd file to "D:\StackFlow\" Note: i want to copy that file whenever i changed the directory source
A Mu's user avatar
  • 23
3 votes
1 answer
114 views

I'm building a shell in Java and currently implementing pipeline logic. For inter-process communication, I've created this class: public class PipeConnector implements Runnable { private final ...
lowkkid's user avatar
  • 43
0 votes
1 answer
34 views

I am trying to implement a shutdown hook on my Debian machine, in which I want to stop a service before the system does (besides other steps). This is my pre-shutdown.service placed under /etc/systemd/...
Diogo Santos's user avatar
2 votes
1 answer
77 views

Is there a functional difference when piping a shell variable with printf or using a heredoc and expanding the variable inside the heredoc? Piping: txt=… printf '%s\n' "$txt" | xxd Heredoc: ...
knittl's user avatar
  • 270k
1 vote
1 answer
47 views

I have a simple makefile that should print the Git log, which looks as below. SHELL=/bin/bash get_log: echo $(git log)
Shubham Raj's user avatar
3 votes
3 answers
166 views

Running Ubuntu 24.04lts. NOTE: I am trying to read the notification sent by he Discord app to my personal desktop notifications. When I notification from a specific sender, with a specific message, I ...
Joshua Besneatte's user avatar
Advice
0 votes
1 replies
43 views

Aim My aim is to analyze a (big) (sub)directory and just find out what file extensions all files have there (recursively). Additionally, these conditions apply: I am on Windows, but I could use WSL ...
rugk's user avatar
  • 5,785
Best practices
3 votes
2 replies
103 views

I want do download certain search results from the internet archive. I would like that the names of the resulted files and directories to be the title of the work -- idealy YYYY_<author>_<...
alex's user avatar
  • 1,145
1 vote
1 answer
182 views

for in in Bash is setting variable. I need only the variable itself from this command. for VAR in FILE*; do something (hate it) done I plan to use this variable later, not in the block itself. Just ...
Verity Freedom's user avatar
1 vote
1 answer
81 views

I downloaded Fedora 43 Cosmic (Wayland) and found no way to disable my touchpad (mouse is always connected). xinput and synclient seem to be X11 only. Touchpad Disable is a simple checkbox with KDE ...
One Dash Dot compact web's user avatar
Tooling
0 votes
7 replies
136 views

I am looking for a one liner that could be run in a linux terminal that does the below. Takes as input a tab separated file (tsv) with many columns (~100) and creates a two column tsv output with ...
Jeffin Rockey's user avatar
2 votes
4 answers
142 views

I seem to be observing conflicting evidence regarding how the tty and the shell share responsibility for displaying user input. In the following interactive session, user input is no longer echoed to ...
merlin2011's user avatar
  • 76.5k
1 vote
1 answer
85 views

Consider the following Expect and Bash scripts: spawn-bash.exp #!/usr/bin/env expect spawn bash stty raw -echo log_user 0 remove_nulls 0 expect { -i $spawn_id "?" { send_user -- [...
merlin2011's user avatar
  • 76.5k
3 votes
1 answer
84 views

I wanted to execute the below command. I have a file with server names. for i in \`cat /tmp/srv_list\`; do ssh $i "uname -a; uptime; grep -E "warn|error|failed|issues" /var/log/...
Uday's user avatar
  • 33

15 30 50 per page
1
2 3 4 5
6202