Results 1 to 3 of 3
Hi guys,i could like to append the sentence to the next line when it hit a certain key word,could anyone help out?
Input file:
root: root time_last_login = 1191232080 root ...
- 10-23-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 25
Appending problem
Hi guys,i could like to append the sentence to the next line when it hit a certain key word,could anyone help out?
Input file:
root: root time_last_login = 1191232080 root tty_last_login = /dev/vty0 root host_last_login = rep1nim root unsuccessful_login_count = 0 root time_last_unsuccessful_login = 1183617892 root tty_last_unsuccessful_login = /dev/vty0 root host_last_unsuccessful_login = rep1nim
i could like it to append to the next line when it see the word "root",hope someone can help..been trying out alot of source code..but still cant do it..can sed or awk do it?cos i only got this 2 program
- 10-25-2007 #2
I'm afraid that I don't understand the problem. Can you give a simplified example, or maybe explain it more thoroughly?
DISTRO=Arch
Registered Linux User #388732
- 10-26-2007 #3


Reply With Quote
