10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Trying to do so
echo "111:222:333" |awk -F: '{system("export TESTO=" $2)}'But it doesn't work (2 Replies)
Discussion started by: urello
2 Replies
2. Shell Programming and Scripting
I wrote a very simple script to understand how to call user-defined functions from within awk after reading this post.
function my_func_local {
echo "In func $1"
}
export -f my_func_local
echo $1 | awk -F"/" '{for (k=1;k<=NF;k++) {
if ($k == "a" ) {
system("my_local_func $k")
}
else{... (19 Replies)
Discussion started by: sreyan32
19 Replies
3. Shell Programming and Scripting
Using ksh to call a function which has awk script embedded.
It parses a long two element list file, filled with text numbers (I want column 2, beginning no sooner than line 45, that's the only known thing) . It's unknown where to start or end the data collection, dynamic variables will be used. ... (1 Reply)
Discussion started by: highnthemnts
1 Replies
4. Shell Programming and Scripting
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):
... (1 Reply)
Discussion started by: sbobotex
1 Replies
5. Shell Programming and Scripting
Hola. Tengo un problema. En un archivo tengo distintos campos y en alguno de ellos y en alguna linea me aparecen ******.
ej:
hola 0.1 ****** 85
adios 1.2 9650 23
gracias 2 ****** 54
bye 87 5666 89
hi ... (1 Reply)
Discussion started by: kekaes
1 Replies
6. UNIX for Dummies Questions & Answers
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
7. Shell Programming and Scripting
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
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
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. What is on Your Mind?
A warning...
I used to be a BT Broadband customer, but changed to Sky in February.
BT withdrew the service with the cutover and that was that.
But I've just checked my credit card statements, and they've billed me for the service again for the past two months! (2 Replies)
Discussion started by: prowla
2 Replies