Tony Mountifield wrote:
>> # Get the file
>> Utmp=$( < /home/pi/net/devices.csv )
>>
>> # Get everything after the 12th ','
>> Utmp=$(Utmp#*,*,*,*,*,*,*,*,*,*,*,*,)
>
> Always dangerous to type suggestions on the fly without testing!
> (been there, done that)
>
> I think you mean ${ ... } not
In article <1931f5f1-efe3-44b2-a764-272fe0543...@thehobsons.co.uk>,
Simon Hobson wrote:
> maxmax20 wrote:
>
> > rrdtool update /home/pi/net/net.rrd N:'cut -d, /home/pi/net/devices.csv -f13
> > | cut -d: -f2': to get the first value out of the csv file, but it seems
> > that it won't work.
>
maxmax20 wrote:
> rrdtool update /home/pi/net/net.rrd N:'cut -d, /home/pi/net/devices.csv -f13
> | cut -d: -f2': to get the first value out of the csv file, but it seems
> that it won't work.
As suggested, put echo in front of it - and possibly pipe the output through
hexdump.
One thought,
In article <1452266932862-7583246.p...@n2.nabble.com>,
maxmax20 wrote:
> Hello,
>
> I have a simple script that greps some values from a csv file.
> I wanted to do the following:
>
> rrdtool update /home/pi/net/net.rrd N:'cut -d, /home/pi/net/devices.csv -f13
> | cut -d: -f2': to get the fir
Hello,
I have a simple script that greps some values from a csv file.
I wanted to do the following:
rrdtool update /home/pi/net/net.rrd N:'cut -d, /home/pi/net/devices.csv -f13
| cut -d: -f2': to get the first value out of the csv file, but it seems
that it won't work.
Can this be done or do