Hello all,
I'm new to this site and have what I hope is a simple AWK problem...
I need to search a file and add text to a line if the criteria is correct.
If I have the following file:
bob Password = "password"
Service-Type=Framed-User
Session-Timeout=9000
Ascend-Idle-Limit=900
steve Password = "password"
Service-Type=Framed-User
Session-Timeout=9000
Ascend-Idle-Limit=900
I need to search for an EXACT MATCH for bob at the BEGINNING of the line and include some text to the same line bob is on.
To make the file look like this when finished:
bob Password = "password-disconnected 08-01-02"
Service-Type=Framed-User
Session-Timeout=9000
Ascend-Idle-Limit=900
steve Password = "password"
Service-Type=Framed-User
Session-Timeout=9000
Ascend-Idle-Limit=900
Any help would be appreciated.
Thanks in advance.
I'm new to this site and have what I hope is a simple AWK problem...
I need to search a file and add text to a line if the criteria is correct.
If I have the following file:
bob Password = "password"
Service-Type=Framed-User
Session-Timeout=9000
Ascend-Idle-Limit=900
steve Password = "password"
Service-Type=Framed-User
Session-Timeout=9000
Ascend-Idle-Limit=900
I need to search for an EXACT MATCH for bob at the BEGINNING of the line and include some text to the same line bob is on.
To make the file look like this when finished:
bob Password = "password-disconnected 08-01-02"
Service-Type=Framed-User
Session-Timeout=9000
Ascend-Idle-Limit=900
steve Password = "password"
Service-Type=Framed-User
Session-Timeout=9000
Ascend-Idle-Limit=900
Any help would be appreciated.
Thanks in advance.