Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [echo]

Simple function outputting text. Exists in script languages.

1 vote
0 answers
21 views

Laravel Echo is undefined

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1....
Inba V's user avatar
  • 11
-2 votes
0 answers
20 views

echo $PATH has strange output [closed]

I ran in terminal: echo $PATH the output is this: /usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/...
AEC0202's user avatar
-1 votes
2 answers
77 views

BASH: Assign values to variables with echo | sed | read [duplicate]

I'm trying to pass a string through a pipe going from echo to sed to read, but something isn't working: #!/bin/bash STR="alef|bet|gimel|daled" echo $STR echo $STR | sed 's/\|/ /g' | read ...
Akira Takeshi's user avatar
-1 votes
3 answers
44 views

Clarification on how PHP handles true and false values

I would like to use a true/false result to do alternative things in PHP. I was surprised by the following: $falsevar = false; $truevar = true; echo "falsevar which I just set to false is".$...
user6631314's user avatar
  • 1,868
0 votes
0 answers
159 views

Laravel 11 Reverb: WebSocket Connection failed

WebSocket connection to wss://subdomain.domain.com/app/... failed Its working on locally without any issue but in production it gives issue here is my .env for production REVERB_APP_ID=401132 ...
Muntasir Hasan's user avatar
0 votes
1 answer
35 views

Building arrays in command line and calling them in a for loop as a single command

I am trying to build two arrays (arr1 and arr2 which will have the same length) in the command line to be referenced in a for loop. Building the command like this from the script, set arr1[0]="a&...
Amazonian_panda's user avatar
0 votes
1 answer
46 views

Bash Command Substitution in echo/printf doesn't print result on the same line? [duplicate]

Reproducible example Consider this example: #!/usr/bin/env bash echo "[Status] $(killall --wait example)" Expected output: [Status] example: no process found Actual result (being wrong ...
GrabbenD's user avatar
  • 430
0 votes
1 answer
37 views

How do I keep the mysql client from echoing commands?

The mysql client on my Macbook echos command lines. Even when I turn echoing of command lines off in the shell, when I start up the mysql client it immediately begins echoing them. Then when I exit ...
Percy's user avatar
  • 35
2 votes
2 answers
61 views

How to cat text string and file in bash in way to preserve literal \newpage in output?

I have multiple markdown files that I am trying to concatenate into one markdown file in bash. I can concatenate markdown files and preserve “\newpage” lines, but when trying to add a group title via ...
ThinkRat's user avatar
1 vote
0 answers
29 views

Echo not printing CDATA tags in Wordpress

I am creating a RSS feed in WordPress. In my functions.php, I have $content = htmlentities(strip_tags(get_the_content()), ENT_XML1, 'UTF-8'); echo '<description><![CDATA[' . $content . ']]>...
Pritam Mullick's user avatar
1 vote
2 answers
117 views

Does the echo command in Bash shell ever write anything to stderr without an explicit redirect of the output? [closed]

Plenty of other commands/binaries would (for example wc --wrong-flag) but is echo one of them? Context: I am maintaining somebody else's Bash script, looking at the following section of it (slightly ...
Leonid's user avatar
  • 682
2 votes
1 answer
587 views

How to Live Reload golang REST project like nodemon in nodejs?

I want to run golang REST api project in echo labstack. for development purpose i want that when i save file it automatically refesh the api's in VS code like nodemon does in nodejs. i am trying to go ...
Vivek's user avatar
  • 146
0 votes
0 answers
60 views

How to reduce noise in recordings with a known audio file

I have a microphone and speaker connect to a RPI inside an art sculpture, my objective is to record new audio clips of people talking into the mic while playing back 3 random recorded audio clips. It ...
Manay Lodha's user avatar
0 votes
0 answers
25 views

Trying to echo line variable along with another variable inside a while read loop

Am trying to echo a line variable along with another variable like below while read -r line;do id1=$(echo "$line"|grep...) id2=`grep "$id1"...." echo "$line" , "...
sabarish tr's user avatar
0 votes
1 answer
67 views

How to preserve newline characters in CSH when storing in a variable or echo

I have a python script which is getting called from a csh script ( I can not use bash). The python script prints out string with the newline characters and I am storing the output in a csh variable. ...
DDStackoverflow's user avatar

15 30 50 per page
1
2 3 4 5
384