Skip to main content

Questions tagged [bash]

Bash is a free shell for Unix-like operating systems from the GNU Project.

1 vote
0 answers
139 views

How could I have VScode on Windows 10 with the default terminal changed to WSL2 Ubuntu-24.04 like a native linux distro?

I'm trying to have inside VScode for Windows 10 (Microsoft Windows [versão 10.0.19045.4474]) options to change the terminal from default to another one such WSL2 Ubuntu 24.04. I have installed ...
Marlon's user avatar
  • 379
0 votes
0 answers
38 views

Need Clang version at least 16

I am tried to compile the Apache Doris on macOS 13.3.1 follow by this document: https://doris.apache.org/docs/install/source-install/compilation-mac/. When I run the bash build.sh command, shows error ...
Dolphin's user avatar
  • 197
1 vote
0 answers
36 views

Why can’t I assign a requested address InspIRCd? “Reason: Cannot assign requested address”

I want to make an IRC server but when I run ./inspircd start it I get this. I turned off UFW and set up port forwarding, but nothing changes: Inspire Internet Relay Chat Server, compiled on Jun 8 ...
Matei Serban's user avatar
1 vote
1 answer
57 views

Bash prevent word splitting in array from command

I am using bash to get all of my directories with find . -maxdepth 1 -type d. I am then storing it in an array called selections. The issue is if a file has a space in it then i get some issues. When ...
Abbatrombone's user avatar
0 votes
0 answers
64 views

Permission denied: users/usr/.local/bin

I'm trying to install a program to download pdf files. This is the github link https://github.com/Lofter1/anyflip-downloader. I followed the istructions but I basically don't know exaclty what I'm ...
NoMilk's user avatar
  • 11
0 votes
0 answers
32 views

Redirecting standard output AND standard error in bash

I'm trying to write standard out and standard error to the same file. $ /usr/local/bin/aapt dump badging base.apk 1>sout.text 2>serror.text $ dog sout.text package: name='foo' versionCode='1' ...
confused's user avatar
2 votes
1 answer
74 views

Cygwin bash script file fails silently

I have a script file that uses rsync for backup, then compares the two directory trees using diff. diff seems to find all the differences correctly - it matches what WinMerge finds. But when there ...
Ronzone's user avatar
  • 21
0 votes
0 answers
31 views

Grep’s result coloring, and right-to-left scripts

I have a text file with a single line that contains the single Yiddish word azoy, in Hebrew script: אַזױ. Then I grep for occurrences of the oy character, ױ. (This is highly simplified of course, in ...
Ruud Harmsen's user avatar
-1 votes
1 answer
50 views

Hide files and folders with same name

I ran into an issue where I had to restart my computer during a large extraction process involving many zip files :(. All the zip files contain a folder that has the name of the zip file (minus .zip) ...
Brian Jester's user avatar
1 vote
1 answer
35 views

How to find the last N days from a log file [closed]

I have a log file like this: my test log line May 18 2024 13:30 my test log line May 19 2024 13:30 my test log line May 21 2024 13:30 my test log line May 22 2024 13:30 my test log line May 23 2024 13:...
NomeEoleSem's user avatar
0 votes
0 answers
37 views

Launching Windows apps from WSL2 with foreground process control

I'm using WSL2 on Windows 11 and I'm trying to achieve the following: I want to launch Windows applications from within WSL2 and have the Bash terminal maintain a handle to the new process. ...
dewijones92's user avatar
1 vote
0 answers
62 views

How to confirm ready state for an external USB disk before attempting other actions

[start of edit 1] Before I plug in my external USB backup drive, my computer is fully booted-up, and I am in my session as root. Because of its location, my USB cord is already plugged in, but I ...
Eric Marceau's user avatar
0 votes
1 answer
67 views

How to use grep with a pipe symbol from the command line

Maybe I'm missing something very simple, but I don't seem to be able to use grep from the command line (in bash) where the search argument contains a vertical bar |. For example, grep a|b results in ...
Mr Lister's user avatar
  • 276
1 vote
1 answer
60 views

Why I can't change the prompt in VSCode's terminal?

I am trying to change the prompt in my VSCode's terminal. My OS is MacOS Monterey 12.6. I use the zsh and I change the PS1 in .zprofile,such like this. Then I use echo to test.The others can work ...
Luxury's user avatar
  • 11
0 votes
2 answers
105 views

bash + how to insert date before line

lets say I want to pipe the date output in the beggining of some text for example echo "this line is test line" | date and expected output should be Wed May 22 14:55:10 UTC 2024 this line ...
King David's user avatar

15 30 50 per page