Search Results

Search: Posts Made By: Zabo
Forum: Programming 05-17-2017
7,078
Posted By Corona688
...and if standard input is already something...
...and if standard input is already something else, you can do getline < "/dev/stdin"
Forum: Programming 05-17-2017
7,078
Posted By RavinderSingh13
Hello Zabo, Here is an example for it. ...
Hello Zabo,

Here is an example for it.

awk 'BEGIN{print "Enter your Name: ";getline name < "-";print RS "Input entered by user is: "name}'
After running the above code following output will...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy