Search Results

Search: Posts Made By: yg10
3,169
Posted By yg10
Don't forget to put quotes around \n. Something...
Don't forget to put quotes around \n.
Something like
#!/bin/sh
cat $1 | tr , "\n"
will translate all commas in the file to newlines.
Forum: Programming 12-06-2010
2,579
Posted By yg10
I said "The following code writes characters to...
I said "The following code writes characters to the file. (You need to press <ENTER> once before entering EOF - <CTRL>D in UNIX <CTRL>Z in Windows)"
Can you, please tell me in what I am wrong?
Forum: Programming 12-05-2010
2,579
Posted By yg10
1. getchar is an function, not a variable. So,...
1. getchar is an function, not a variable. So, probably you have to use getchar() instead of getchar. This explains the weird value of getchar.

2. getchar returns the integer _value_ of character...
2,079
Posted By yg10
The script prints _all_ domains because of the...
The script prints _all_ domains because of the line:
echo $line;

to print only necessary domains you should write something like:

while read line;
do
echo $line;
REG=whois $line | grep...
Showing results 1 to 4 of 4

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