estrarre più righe con awk da files html


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting estrarre più righe con awk da files html
# 1  
Old 12-17-2010
estrarre più righe con awk da files html

salve a tutti, sono nuovo di questo forum e sono nuovo anche come shell scripter diciamo.

il mio problema è quello di avere dei files html in una directory e da questi vorrei estrarre un dato che si trova tra due righe differenti
Ecco la mia situazione

<td align="default">ossidabilità (mg/l):
dato_da_estrarre
</td>

questa struttura si ripete in tutti questi file
come faccio ad utilizzare awk per fare questa estrazione ed inserire i dati in un file .txt?
grazie mille a tutti
# 2  
Old 12-17-2010
Hello.

Per our forum rules, all posts must be in English.

We do provide translation services for posts from English to a number of languages as a benefit to users. However, posts must be in English.

Please repost in English.

Thank you for your cooperation.

The UNIX and Linux Forums.
This User Gave Thanks to zaxxon For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with awk and html

Hi i have a file say test with the following output server share-name path acl ---------- ----------------------------... (2 Replies)
Discussion started by: venkitesh
2 Replies

2. Shell Programming and Scripting

awk help for HTML

Hi all, I have a file as below input.csv NAME,EMPNO,PHNO kkk,1234,0000 nnn,456,8765 hhh,888,555 hhy,222,567 i want to convert this into HTML table im using this awk -F"," 'BEGIN{print "<table border=1>" { print "<tr>";for(i=1;i<=NF;i++)print "<td><b><font face=\"verdana\"><font... (1 Reply)
Discussion started by: zozoo
1 Replies

3. Shell Programming and Scripting

html formatting using awk

Hi I have a file as given below: <table border=1> <TR><TH>Script Name</TH><TH>CVS Status</TH><TH>Script Location</TH></TR> <TR><TD><CENTER>Work Area: /home/ustst/</CENTER></TD></TR> <TR><TD><CENTER>admin_export.sh</CENTER></TD><TD><CENTER>Locally... (1 Reply)
Discussion started by: sudvishw
1 Replies

4. Shell Programming and Scripting

extract data with awk from html files

Hello everyone, I'm new to this forum and i am new as a shell scripter. my problem is to have html files in a directory and I would like to extract from these some data that lies between two different lines Here's my situation <td align="default"> oxidizability (mg / l): data_to_extract... (6 Replies)
Discussion started by: sbobotex
6 Replies

5. UNIX for Dummies Questions & Answers

Almacenar variables con AWK

Hola a todos, soy nuevo en el foro y también en programación Shell Script. El problema es el siguiente: necesito hacer un Script que busque todos los procesos del sistema y me muestre de forma jerárquica la cantidad de Bytes que ocupa cada una de las regiones del mapa de memoria de cada proceso. ... (1 Reply)
Discussion started by: cougar_rea
1 Replies

6. Shell Programming and Scripting

Almacenar variables con AWK

Hola a todos, soy nuevo en el foro y también en programación Shell Script. El problema es el siguiente: necesito hacer un Script que busque todos los procesos del sistema y me muestre de forma jerárquica la cantidad de Bytes que ocupa cada una de las regiones del mapa de memoria de cada... (1 Reply)
Discussion started by: cougar_rea
1 Replies

7. Shell Programming and Scripting

Almacenar variables con AWK

Hola a todos, soy nuevo en el foro y también en programación Shell Script. El problema es el siguiente: necesito hacer un Script que busque todos los procesos del sistema y me muestre de forma jerárquica la cantidad de Bytes que ocupa cada una de las regiones del mapa de memoria de cada proceso. ... (1 Reply)
Discussion started by: cougar_rea
1 Replies

8. Shell Programming and Scripting

prime armi con sed e awk

Salve sono alle prime prese con i comandi sed e awk. Nel primo caso vorrei creare uno script in cui viene estratto la partizione maggiore. in più ci deve essere un messaggio d'avviso se supera l' 80 % dello spazio occupato. Ho pensato di usare il comando df -h, e l' awk. Mi potete dire come?... (1 Reply)
Discussion started by: L_92
1 Replies

9. UNIX for Dummies Questions & Answers

Parse XML e report con AWK

Thanks in advance who can answer. I have to make a small shell that after reading an XML file and extract the fields I create a text file with the same fields taken previously in tabular form. I did this parse.awk ---------------------- BEGIN { FS="" } { for(i=2; i<=NF; i+=2) { ... (1 Reply)
Discussion started by: mcarlo65
1 Replies

10. Shell Programming and Scripting

stampare righe precedenti ad un match in file

Salve a tutti...volevo chiedere a voi,che sicuramente ne sapete piu di me,come posso ottenere la seguente soluzione: ho un file del tipo: CIAO COME STAI PERCHE COME STAI CIAO COME VA ALLO CHE FACCIAMO ................. io vorre che nel caso in cui in una riga è presenta la parola... (1 Reply)
Discussion started by: fabi20
1 Replies
Login or Register to Ask a Question