Search Results

Search: Posts Made By: SysAdminRialto
1,666
Posted By RudiC
Try also (for a data sample exactly as in...
Try also (for a data sample exactly as in post#1):



awk 'NF==1 {getline X; $0+=X} 1' file
1,666
Posted By Don Cragun
You haven't told us what shell or operating...
You haven't told us what shell or operating system you're using.

The following should do what you want with file2 containing all of the summed values from adjacent lines that only contain one...
6,262
Posted By RudiC
Pls run the cron job with the -x (xtrace) bash...
Pls run the cron job with the -x (xtrace) bash option and post the output.


And, how far would sshpass -e ssh -oBatchMode=no Administrator@192.168.15.71 show system1/sensor3 |
awk -F= 'NR == 13...
6,262
Posted By Don Cragun
I would expect echo '(1.8*$celsius+32)' | tr -d...
I would expect echo '(1.8*$celsius+32)' | tr -d '\n' | bc -l to give you the diagnostic message you showed us since bc input needs to be a text file and, by stripping off the <newline> character with...
6,262
Posted By RudiC
Sure it's bc? Pls show your cron entry, and also...
Sure it's bc? Pls show your cron entry, and also the contents of the celsius variable, and the step5 file.


Are your aware that most of your convoluted processing could be done in one single...
2,889
Posted By ctsgnb
1) The CSV.txt you've posted is in fact your...
1) The CSV.txt you've posted is in fact your sendtodb.csv file, is that correct ?

2) What is the content of your me.csv file ?
2,719
Posted By Scrutinizer
You are using a while read loop that takes the...
You are using a while read loop that takes the input of the file. So it echoes the 5 output lines x the number of lines in the file, so there appear to be 4 lines in the file.

Just leave out the...
Showing results 1 to 7 of 7

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