Search Results

Search: Posts Made By: unohu
19,184
Posted By drl
Hi. Given that information, I would try: ...
Hi.

Given that information, I would try:
cp test.log back.log
sed '1,100d' test.log>temp.log
# mv temp.log test.log
cp temp.log test.log
(comment, "#", only for illustration, not needed in...
19,184
Posted By methyl
IMHO @drl's solution in post #15 nearly fulfils...
IMHO @drl's solution in post #15 nearly fulfils the requirement.

Reading between the lines, we are again presented with a faulty solution without a definition of the actual problem.

Taking...
19,184
Posted By methyl
@unoho Sounds like your logfile is open by an...
@unoho
Sounds like your logfile is open by an application.
The usual technique when a logfile is open (like with some of the system logs) is to copy the file, then null it. This retains any file...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy