sh
Syntax error: EOF in backquote substitution
I\'m getting an error Syntax error: EOF in backquote substitution and I don\'t have the faintest idea why. Would anyone mind taking a quick look?[详细]
2023-03-01 10:45 分类:问答Linux Expect expect_out(buffer) does contain nothing
I\'ve been trying to capture the result of grep, logging into a remote machine, using ssl in Expect command.[详细]
2023-02-28 15:02 分类:问答How do I get the effect and usefulness of "set -e" inside a shell function?
set -e (or a script starting with #!/bin/sh -e) is extremely useful to automatically bomb out if there i开发者_JS百科s a problem. It saves me having to error check every single command that might fail[详细]
2023-02-28 06:01 分类:问答How do I turn off echo in a terminal?
I\'m writing a Bourne shell script an开发者_JS百科d have a password input like this: echo -n \'Password: \'[详细]
2023-02-25 11:36 分类:问答How to remove inherited functions in sh (posix)
How do I ensure that there are no unexpected functions inherited from the parent when my script is run?If using bash,[详细]
2023-02-23 06:58 分类:问答Replacing first and second occurrence of the same text with different values
I\'m searching for a way to replace the first occurrence of a certain text in a text file with a value ${A} and the second occurrence of the same text, on a different line, with ${B}. Can this be achi[详细]
2023-02-23 06:44 分类:问答Fool a program run from within a shell script into thinking it's reading from a terminal
I\'d like to write a shell script that does something like the following while read line开发者_开发技巧; do[详细]
2023-02-23 01:47 分类:问答sh file running problem
I wrote as sh file.When I execute it it doesn\'t work correctly.But by using same commands to command prompt independently it works.What may be the problem?I am a newbie in shell scripting.So any help[详细]
2023-02-21 10:00 分类:问答pre-receive hook on server-side that refuse any push to master which has any non-linear history
I am looking for a shell script (sh, not bash possibly) that would refuse any push to master which has any non-linear history.[详细]
2023-02-21 00:19 分类:问答Bash : redirect init.d output in variable
I try to redirect the output of an init.d command to a variabl开发者_运维问答e without displaying it on screen, but this does not work.[详细]
2023-02-19 05:29 分类:问答