Search Results

Search: Posts Made By: nextyoyoma
2,543
Posted By Chubler_XL
od -c input.csv will show you what the input file...
od -c input.csv will show you what the input file contains.

It's probably just in DOS format (with both \n and \r) and you just want to delete any \r characters, with:

tr -d '\r' <...
3,019
Posted By Scrutinizer
FWIW, this is bash 3.2.48 on OSX 10.7 $ echo...
FWIW, this is bash 3.2.48 on OSX 10.7
$ echo $(( 2 ** 63 - 1 ))
9223372036854775807
3,019
Posted By methyl
Not posting your O/S and Shell details is driving...
Not posting your O/S and Shell details is driving me nuts!

We really need to know whether the O/S Shell can cope with numbers above 2147483647 ((2 x 1024 x 1024 x 1024) -1 ). i.e. a 32-bit O/S....
2,090
Posted By Chubler_XL
Try this (Array DMGSIZE will contain size of each...
Try this (Array DMGSIZE will contain size of each .dmg file in DMGLIST):

#!/bin/bash
#first part of script which generates the array below
pos=0
for i in ${DMGLIST[@]} #This array contains a...
13,414
Posted By Chubler_XL
Or#!/bin/bash b=(2 4 6) a=0 for i in...
Or#!/bin/bash
b=(2 4 6)
a=0
for i in ${b[@]}
do
narray[a++]=$((i*2))
done
echo ${narray[@]}
11,406
Posted By Scrutinizer
Try: stat -f "%z" file
Try:
stat -f "%z" file
Showing results 1 to 6 of 6

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