bash tag

84 questions


1 answers
75 views
0
Obtain URL after javascript execution

There is an HTML+Javascript page.On this page, videos are played with a video tag, but the URL of the video is set to the video tag by running javascript.I would like to get the URL that will be set i...

2 years ago

2 answers
71 views
0
If there is a space in the file name when scp is performed in expect bash, it is treated as a different file.

If the file name is space separated when scp is performed with bash expect, it will be treated as a different file.fromfile='[email protected]:/tmp/hoge hhoge hhoge.txt'expect-cset timeout 3600spa...

2 years ago

1 answers
89 views
0
Does the loop processing in bash work even if it is enclosed in parentheses?

I think the loop processing in Bash will be sandwiched between do and don as shown below.#!/bin/bashfor fin./*do echo$fdoneAs a trial, {} also worked as intended.#!/bin/bashfor fin./*{ echo$f}executio...

2 years ago

1 answers
99 views
0
bash —How to view your own standard errors

I'm looking for a way to see what the process has printed in its own standard error later.It's the background.There are commands mycmd, mycheck, and mysendmail.The command mycmd executes the command m...

2 years ago

3 answers
67 views
0
Bash refers to keywords in a file and extracts parts common to the string.

[Contents] In bash, I would like to refer to the list with keywords (with Japanese, spaces, separated by new lines) file, compare the given string (with Japanese, space hyphen, etc.) with the list, an...

2 years ago

1 answers
110 views
0
Issue with tr-d '\n' Unable to Delete Line Break

Hello, this is Nanopore.This is my first time asking a question.I'm trying to delete a new line from the txt file, but I'm having a hard time because I can't delete the new line even if I run the foll...

2 years ago

1 answers
85 views
0
Error running pg_dump on git bash: too many command-line arguments

I did the following on the git bash I installed on Windows 10.There will be no response.pg_dump-c-Uxxxx-h xxxx.rds.amazonaws.com-f C:\Users\xxxx.sqlWhen I ran the same command at the command prompt, t...

2 years ago

1 answers
111 views
0
I want to change sides of the pipe.

Is there a way to write upside down on both sides of the pipe (|)?If you accidentally write from the Call the Standard Input recipient's command, you want to continue without going back to the beginni...

2 years ago

1 answers
120 views
0
How to select mysql from bash (shell) and output it in JSON

I would like to know how to select mysql on bash and output it on JSON.Specifically, echo SELECT* from testtable; | mysql --defaults-extra-file=./my.conf testdbI would like to print the results in JSO...

2 years ago

1 answers
65 views
0
harden with a git push

After cloning, when I try to edit the file and commit add and push, the process stops without asking for the username or password in push.There is no error message or output.What should I do?By the wa...

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.