Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I hv a file with following entry.
dn: uid=isgwpsadmin1, ou=adminaccount, o=xyz, dc=com
owner: uid=da87793,ou=account,o=xyz,dc=com
dn: uid=AdminPassword,ou=AdminAccount,o=xyz,dc=com
owner: uid=RMX8232, ou=account, o=xyz,dc=comHow do I identify a space before comma or after comma in the above records.
and if speace is their then display uid=xxxxxxx has a space.
(using korn shell script)

try,
grep ", " InFile | while read a uid rest
do
echo $uid has a space
donehope it helps you
No RISK no fun
Frank

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |