|Date:||Fri, 7 Dec 2001 12:49:17 +0530|
We are intending to do the tr command for GNU/HURD.
Can anyone plz. explain what we are actually required to do
when writing a tr?
Actually, the idea what we have is :
hurd# settrans /tmp/PASSWD ~/work/hurd/my-tr-translator --file /etc/passwd --expr "a-z A-Z"
Here my-tr-translator must get the port of /etc/passwd
and then read the contents of passwd thru the port
(port is obtained by querying the root file system). After
reading it will apply the conversion according to --expr
and then write the output to the port of /tmp/PASSWD?
Here again we are attaching a passive translator to /tmp/PASSWD 's inode, isn't it?
In that case /tmp/PASSWD may not required storage space, it may just require the command string in its inode?
Is that is what we are reqd. to do or are we
Please explain the same.
|[Prev in Thread]||Current Thread||[Next in Thread]|