Search Results

Search: Posts Made By: sectech
1,248
Posted By Don Cragun
If you don't show us the contents of file1 and...
If you don't show us the contents of file1 and file2, we can only guess at what might be going wrong. Are there any empty lines in file1 and file2?
17,269
Posted By Don Cragun
I don't understand the problem. Don't: ...
I don't understand the problem. Don't:
program_to_produce_input | awk -F ': *' '
function p(){
if(host=="")return
printf("%s\t%s\t%s\n",node,host,agent)
host=agent=""
}...
17,269
Posted By elixir_sinari
Without knowing your input: awk...
Without knowing your input:
awk '/AP/{sub(/:80/, "", $4);printf $4"\t"} /User-Agent/{sub(/^[^:][^:]*:/,"");printf $0}/Host/{sub(/^[^:][^:]*:/,"");print}'
Showing results 1 to 3 of 3

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