Top "Stdin" questions

Standard input (stdin, file descriptor 0) is the input stream to a program.

Reading long int using scanf

To read an int using scanf we use: scanf("%d", &i); What if i is a long not int?? …

c++ c stdin scanf
What does sys.stdin read?

I get how to open files, and then use Python's pre built in functions with them. But how does sys.…

python file stdin sys
Reading an integer from standard input

How do I use the fmt.Scanf function in Go to get an integer input from the standard input? If …

go stdin
How to pipe input to a Bash while loop and preserve variables after loop ends

Bash allows to use: cat <(echo "$FILECONTENT") Bash also allow to use: while read i; do echo $i; done &…

bash while-loop stdin pipe
How to make a bash function which can read from standard input?

I have some scripts that work with parameters, they work just fine but i would like them to be able …

bash pipe stdin
How to pass the value of a variable to the stdin of a command?

I'm writing a shell script that should be somewhat secure i.e. does not pass secure data through parameters of …

security bash stdin
Eclipse reading stdin (System.in) from a file

Is it possible for Eclipse to read stdin from a file?

java eclipse file stdin system.in
PHP standard input?

I know PHP is usually used for web development, where there is no standard input, but PHP claims to be …

php file-io stdin
How to read mutliline input from stdin into variable and how to print one out in shell(sh,bash)?

What I want to do is the following: read in multiple line input from stdin into variable A make various …

bash shell stdin multiline
Reading line by line from STDIN

I want to do something like this: $ [mysql query that produces many lines] | php parse_STDIN.php In parse_STDIN.…

php pipe stdin