Search Results

Search: Posts Made By: csecnarf
1,699
Posted By csecnarf
redirect variable to same program at next loop
Hi all,

I don't know how to redirect a variable in this case:

while true
do
./ready_data
...
done

ready_data should read a file looking for an ID, if this doesn't exist then...
17,422
Posted By csecnarf
Ok... it works! and now... if I want to open...
Ok... it works!

and now... if I want to open this file in other function by

open (char *filename, int flags, int mode)

how can I do to recognize the $name variable inside the function?
...
17,422
Posted By csecnarf
Ok thanks, it works!!
Ok thanks, it works!!
17,422
Posted By csecnarf
Actually into the first file there is something...
Actually into the first file there is something like:
...
Filename 089E data...
...

And I want to redirect a command into 089E.txt

I have tried:

awk '/Filename/ {name=$2;}' File1...
17,422
Posted By csecnarf
redirect output to a file name
Hi all!!

is possible to assign the output of some command to filename, i.e.

grep_output.txt

Otherwise, I want to open a new file which name is inside another, how can I do it?

Thanks a...
2,260
Posted By csecnarf
Ahhh... you mean fot Temperature and everything,...
Ahhh... you mean fot Temperature and everything, hehe... sorting alphabetically is right. Thank you very much.

Can you explain me every step of the program?
2,260
Posted By csecnarf
Great! Now I have easier line identifier, but...
Great! Now I have easier line identifier, but actually my final target is to get something like this:

4D5A:Temperature: 27,5 / 28 / 21,5
4D5A:Humidity: 40 / 41 / 43
4D5A:Dew Point: 23 / 21 / 20...
2,260
Posted By csecnarf
rearrange info of file in a "table"
Please I need to rearrange data acquired by USB port from a sensor network. The information is mixed and I need to convert it into a kind of table. This is my input file:

Node 4D5A joined...
3,609
Posted By csecnarf
Sorry the input file was missed awk '/ / {...
Sorry the input file was missed

awk '/ / { }' input.file > output.file
3,609
Posted By csecnarf
Try this if you want to get every number: ...
Try this if you want to get every number:

awk '/Jun/ {print $0}' > output.file

or if you want to get the total

awk '/Jun/ {sum+ = $0}
END {print "grand total is:" sum}'
1,761
Posted By csecnarf
Actually I don't know how can I write in a line...
Actually I don't know how can I write in a line of a file at the end of the line... like APPEND option of files.

I'm trying to implement the whole program by awk...

Thanks a lot!!!
1,761
Posted By csecnarf
arrange data tools
Which is the best command(s) to arrange data of a file?

This is my example input file:

Tom ------
apples: 5
oranges: 7
pears: 10
apples: 2
oranges: 8
Jack ------
apples: 3
pears: 10...
8,515
Posted By csecnarf
Thanks, it works fine!!
Thanks, it works fine!!
8,515
Posted By csecnarf
Ok I have used it, but I think that my manner is...
Ok I have used it, but I think that my manner is not really elegant.

Do you know how to (by sed)...

overwrite a line which actually you only know how it begins but not how finishes?

I want...
8,515
Posted By csecnarf
no, I want to do it in a boot script. I want...
no, I want to do it in a boot script.

I want to do it by commands lines.
8,515
Posted By csecnarf
overwrite specific lines in a file
Hi all,

I am trying to overwrite some lines of a very big file.
I know the number of the line but I don't know how to point the cursor on its beginning. there is an option to notice the offset in...
4,367
Posted By csecnarf
So... by closing stdout you are sending the...
So... by closing stdout you are sending the output to nowhere. Is like that?

Thank you!
4,367
Posted By csecnarf
dash after ampersant
Hi!

I'm new in these forums and more or less new with Unix. So... here is the question:

does anyone know where is redirected the output of a command when you put >&- after it?

Does it means...
Showing results 1 to 18 of 18

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