|
Now this is my situation
awk -v name=$H 'BEGIN {RS = "[<>]"}{file = (name)(++i)".out"; ORS = /description/?"\n":"|"}/item/,/\/item/{if(/^(description)$/ && getline)print > file; close(file) }' inputfile
But this sentence is generating files with diferents names not 1,2,3..... the names are 12312,101010,111234...... how can I repair this?
THANKS
|