Sponsored Content
Full Discussion: Get value from file!!!!
Top Forums UNIX for Dummies Questions & Answers Get value from file!!!! Post 302116248 by jibsonline on Wednesday 2nd of May 2007 02:57:46 PM
Old 05-02-2007
Bug

I'm trying to do the check like this.......


uptime|gawk -F" " '{ print $8 }' > load
while read Inbr
do
echo $Inbr
if [ ${Inbr} -gt 77 ]; then
echo "Greater than 77"
else
echo "Less or equal to 77"
fi
done < load

but i get an error


line 7: [: 0.84: integer expression expected

How can i convert the inout from file load to integer???
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

Hi Friends, I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving... File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies

2. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies

3. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
ASTRIBANK_HEXLOAD(8)													      ASTRIBANK_HEXLOAD(8)

NAME
astribank_tool - Xorcom Astribank (xpp) firmware loader SYNOPSIS
astribank_tool -D device-path -F [options] hexfile astribank_tool -D device-path -p [options] hexfile1 .. hexfile4 astribank_tool -D device-path -O [-A] [options] imagefile astribank_tool -D device-path -o [options] astribank_tool -D device-path -E [options] hexfile astribank_tool -h DESCRIPTION
astribank_hexload is a second-stage firmware loader for Xorcom Astribanks. Note that some older models use fpga_load(8) instead. It is used to load a file in the Intel HEX format into a Xorcom Astribank. It can be used to load either an FPGA firmware or a PIC firmware. It is normally run by the script xpp_fxloader. OPTIONS
-D device-path Required. The device to read from/write to. This is bus_num/device_num, where bus_num and device_num are the first two numbers in the output of lsusb(8) or dahdi_hardware(8). On older versions of this toolyou needed a complete path to the device, which would be /dev/bus/usb/bus_num/device_num, or /proc/bus/usb/bus_num/device_num. One of the following is required: -F The firmware to load is a FPGA firmware. -p The firmwares to load is are PIC firmwares. All (typically 4) should be on the command-line. -O The firmware to load is an Octasic echo canceller firmware image file. -o Don't load firmware. Just print the version number of the currently-loaded Octasic echo canceller firmware. -E The firmware to load is a special EEPROM burning one. Other options: -v Increase verbosity. May be used multiple times. -d mask Set debug mask to mask. Default is 0, 0xFF is "everything". -h Displays usage message. -A When loading a Octasic echo canceller firmware, set the channels of the first Astribank module to use aLaw (G.711a). This is what you'd normally use for BRI and E1. If not set, the default mu-Law (G.711u), which is what you'd normally use for FXS, FXO and T1. SEE ALSO
fxload(8), lsusb(8), astribank_tool(8), fpga_load(8) AUTHOR
This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> . Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. 30 May 2011 ASTRIBANK_HEXLOAD(8)
All times are GMT -4. The time now is 01:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy