i have a file by the name of grid-mapfile. now i am actually removing the last 
line of the file by command cat grid-mapfile | head -n -1 | tee grid-mapfile.
But this is sometimes does not give any output. is this is a bug?

[EMAIL PROTECTED] tbac]# cat grid-mapfile
"/O=Grid/OU=GlobusTest/OU=simpleCA-gridproj1.uohyd.ernet.in/OU=uohyd.ernet.in/CN=grid
 user" globus
"/O=Grid/OU=GlobusTest/OU=simpleCA-gridproj1.uohyd.ernet.in/OU=uohyd.ernet.in/CN=globus"
 globus
[EMAIL PROTECTED] tbac]# cat grid-mapfile | head -n -1 | tee grid-mapfile 
"/O=Grid/OU=GlobusTest/OU=simpleCA-gridproj1.uohyd.ernet.in/OU=uohyd.ernet.in/CN=grid
 user" globus
[EMAIL PROTECTED] tbac]# cat grid-mapfile | head -n -1 | tee grid-mapfile
[EMAIL PROTECTED] tbac]# cp /etc/grid-security/grid-mapfile 
/tmp/tbac/grid-mapfilecp: overwrite `/tmp/tbac/grid-mapfile'? y
[EMAIL PROTECTED] tbac]# cat grid-mapfile 
"/O=Grid/OU=GlobusTest/OU=simpleCA-gridproj1.uohyd.ernet.in/OU=uohyd.ernet.in/CN=grid
 user" globus
"/O=Grid/OU=GlobusTest/OU=simpleCA-gridproj1.uohyd.ernet.in/OU=uohyd.ernet.in/CN=globus"
 globus
[EMAIL PROTECTED] tbac]# cat grid-mapfile | head -n -1 | tee grid-mapfile 
[EMAIL PROTECTED] tbac]# cat grid-mapfile
[EMAIL PROTECTED] tbac]#

pracheer gupta



i blog at http://maverickprac.blogspot.com/
                                
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 

[Non-text portions of this message have been removed]

Reply via email to