The tag has no usage guidance.

learn more… | top users | synonyms

11
votes
5answers
42k views

Test if element is in array in bash

Is there a nice way of checking if an array has an element in bash (better than looping through)? Alternatively, is there another way to check if a number or string equals any of a set of predefined ...
5
votes
4answers
5k views

how do I merge an array of images into a single giant image?

I have 220 png images of equal height and width with the following naming convention: A1.png, A2.png, ... V9.png, V10.png I need to merge them into one giant image, with A1 being the top left ...
4
votes
3answers
500 views

Spawning multiple parallel wgets and storing results in a bash array to be pretty printed when all wgets are done

I have a long list of urls on my own website listed in a carriage return seperated text file. So for instance: http:/www.mysite.com/url1.html http:/www.mysite.com/url2.html ...
4
votes
0answers
53 views

Use functions like Countif, Countblank etc. to refer to discontiguous ranges.

Is there a way to use array formulas or some other feature to essentially have an excel function that means. =Countblank({A1,A4:A6,A112:127,B29:B38}) etc. Essentially, I want to refer to multiple ...
3
votes
2answers
2k views

Word macro: how to replace strings in a text, based on a 2 column-table?

So I have a series of strings that I'd like to search and replace in Word documents. My strings would be displayed as a two-column table. I'd probably create the table with Word, then would convert ...
3
votes
2answers
141 views

Excel, how to use text functions on lookup array without putting in another column?

If I'm using a vlookup, or a match function but I need to do some mumbo jumbo on my lookup material, is there a way of doing this in the lookup array without simply adding another column? Let's say I ...
2
votes
1answer
84 views

What type of port is this?

What type of port is this? It is on the back of an older (circa 2006) EMC Array.
2
votes
1answer
3k views

How to return first non-blank cell and if it's already a value before it, return the third non-blank and so on?

How to make a function which would return the first non-blank cell value but if it's defined in the left cells next to it, it would jump 2 cells and look for the next value. Table: 1 | 2 | 3 | 4 | ...
2
votes
2answers
316 views

Swapping RAID sets in and out of the same controller

This is a really simple question, and the answer is probably encoded in various wikipedia articles, however my question is reasonably specific, and I need a bulletproof answer! I'm not sure if my ...
1
vote
1answer
3k views

Is there a way to use a name range as an array criteria for a sum(countif()) formula in Excel 2010

Picture column A full of comments like feedback from a survey question. Now picture column B with a formula which counts occurrances of particular key words within each comment. I am currently using ...
1
vote
2answers
2k views

Extract values from a range that are missing from another

I've got two columns in Excel, "ROSTER" and "PRESENT", shown below: Is there a formula to achieve the "NOT HERE" column? I tried using VLOOKUP() and http://superuser.com/a/289653/135912 to no avail ...
1
vote
1answer
2k views

Expand Synology SHR volume with varying disk sizes

I'm looking for a clarification on SHR and how it handles expanding a volume when the volume contains varying disk sizes. I've read the Synology Documentation and it still isn't clear, because their ...
1
vote
1answer
15 views

Display Associative array in awk

How can I display Associative array, when I don't know index? My script: { tab[$1]=tab[$1]+1 } END{ print tab[*]#display array -> it doesn't work }
1
vote
2answers
68 views

Excel 2010 Array Formula (CSE) Dynamic cell range/reference; index? offset?

This might be an easy question to some but I am completely lost so I would really appreciate any help out there! A 1 10 2 20 3 30 4 40 5 50 6 60 7 70 ...
1
vote
1answer
23 views

How to highlight boundaries of an array in Excel?

I'd like to know if there's a way to make excel show me where are the boundaries of an array, like the highlight I made in the picture below. Some explanation: I have a worksheet that is full of ...
1
vote
1answer
1k views

Excel 2010 - Need to sum dynamic range based on trailing 3 months

I am trying to sum a dynamic range for a list of entries 3 months before and 3 months after a specific month. I think I need to use an array to get this, but I'm not able to find what I need to do. ...
1
vote
1answer
41 views

how to get the array size in ms excel?

I would like to write a formula which returns the size of an array. something like size(A1:A50) Maybe, it seems to be strange; but it helps me when I insert some new rows in the first 50 lines and ...
1
vote
2answers
10k views

List values based on criteria

I have a table on a worksheet called "DealSetup" that looks like this simplified version: A B 1 John Doe 1 2 Jane Doe 1 3 Mark Doe 2 4 Doug Doe 1 5 Mary Doe 2 I ...
1
vote
1answer
142 views

How woulld I add $OPTARGs from one arg to an array

So I'm trying to add values from an optarg to an array. I've got: arrays=() while getopts a: args; do case $args in a) arrays+=$OPTARG;; esac done echo $arrays[@] When I run the script, ...
1
vote
1answer
679 views

cell array of strings to matlab structure

I need to create a matlab structure as such ds=struct('name',{{'my_name_is'},{'matlab_thining_hair'}}) which stores as a 1x2 structure array with a field name. A call to ds.name generates the output: ...
1
vote
1answer
346 views

Restoring Raid 5 Meta data / Table

2 part question at end of this text My problem: My CMOS was cleared, BIOS was set to IDE instead of RAID. My understanding (from other sites) is that motherboard Intel ICH10R data is stored in BIOS ...
1
vote
0answers
20 views

Return 'dir' command results into array/list

I want to know how to return the output of the dir command into an array. I'm using the command like this: dir /s /b *.txt how would I put each result (file name) into an array/list. Thanks
1
vote
0answers
27 views

SAN capable of 25,000 IOPS at 75kb avg. size, where will my bottleneck be? [migrated]

I just want to double check my findings here, hope someone out there is able to weight in on some of this. Let's say I have a SSD storage array capable of delivering 25,200 IOPS and it is connected ...
1
vote
0answers
64 views

Properly extracting from an array

I have a CSV with one column, numbers formatted as 111-0000, that I'm reading in to process one at a time. I'm trying to import the column of information from the CSV, but I'm having trouble figuring ...
1
vote
0answers
23 views

Where does the calculation take place? [closed]

In Google spreadsheets, I have quite a big amount of relatively complex array formulas in many cells. That takes ages to complete calculating. Does the speed of calculation depend on my PC ...
1
vote
0answers
55 views

How to switch off “you can use new shorter array creation syntax” hint in NetBeans IDE 8.0.2?

I use NetBeans IDE 8.0.2 on Linux Mint. I searched through the options few times, but I can never find the option to switch this hint off in there. I know well about the new syntax in PHP, but I ...
1
vote
1answer
130 views

can't seem to populate bash array with new elements using '+=' operator

Like the title says. Trying to populate an array from zenity checklist output. Here is the function I want to run, but fails: function fSongType() { mType=$(zenity --list --title "Random song ...
1
vote
0answers
641 views

md0 RAID1 can't read superblock

i have a problem with my md0 array, which is an raid1 (2 mirrored USB-Sticks) Mount gives "Can't read superblock" cat /proc/mdstat: Personalities : unused devices: <none> fdisk -l ...
1
vote
1answer
599 views

Debian 6 with Smart Array 5i

I have a HP (Compaq) DL 380 G3 which I want to install Debian 6 on. It has been running Debian 5 for a long time without any problems, but now when I want to reinstall the machine to Debian 6 it can't ...
0
votes
2answers
202 views

Array support for the original bash in MacOS 10.4.0?

I'm writing a bash script using simple array operations like: testarray=("First Name" "Second Name" "Third Name") ; for i in "${testarray[@]}" ; do echo "$i" ; done What bash version number came ...
0
votes
1answer
106 views

Resolved: Enumerating every other array element in loop

I have a dynamic array with key-pair values and I’d like to enumerate every other value. In this case, just the names in the array. Since I’m not using bash v4, I have been able to use seq to step ...
0
votes
2answers
54 views

Excel formula to generate a custom array result

I have a formula in excel which contains an array; {1,2,3} its use can be seen at I would like to generate it dynamically eg arrayfun(4) would generate {1,2,3,4}. I can generate a very long array with ...
0
votes
1answer
22 views

Excel 2010 Array (CSE) Formula: How to remove a part of contiguous (adjacent) range

I would really appreciate help on the following question: Is there a way to write a formula that removes a segment from a contiguous range? For example, say there is a formula ...
0
votes
4answers
166 views

Excel: Sum values on a column based on criteria* on other columns *(complex criteria)

See below for rewrite. Please refer to the data below for the question. The very top A B C are columns and the far left numbers 1 through 15 are rows. The rest are cells. A B ...
0
votes
1answer
229 views

Excel horizontal only sum of an array (matrix)

I have a formula which generates a 2D array result. For example: {=ROW(4:6)^TRANSPOSE(ROW(1:3))} (the curly brackets are added by excel when you hit CTRL+SHIFT+ENTER ) I need to sum only the ...
0
votes
1answer
19 views

Trucrypt volume on Raid5

I have a NAS with the system disk on SSD and 8 HDD's in a RAID5 configuration (using an IBM5015 card). The RAID5 volume is encrypted using truecrypt. What happens if the computer dies ? My raid card ...
0
votes
1answer
46 views

Excel cell value (text) based on 2nd cell value (number) appearing in a named range

I have a spreadsheet where I want a contact name to appear in a cell (F166) if the department number (P166) appears in a named range ("PS Depts" on Sheet2). Here is my existing formula, but it only ...
0
votes
1answer
86 views

Powershell Get File Shares Into Array

I am trying to get a list of folders shared on a file server, and put them into an array. This is the code I have at the moment: $FileServer = "ServerName" [array]$FileServerShares = gwmi ...
0
votes
2answers
91 views

Force a one-dimensional array into a constant in Excel

I have a condition in an Excel IF-statement as follows: INDIRECT(ADDRESS(ROW(ME3),MATCH("PremiumWaiver",$1:$1,0)))=1 where INDIRECT(ADDRESS(ROW(ME3),MATCH("PremiumWaiver",$1:$1,0))) eveluates to ...
0
votes
1answer
94 views

Which cable do I need?

I just bought an HP MSA30 hard drive array. I believe it's the dual bus model because the interface card looks like this.... Can anyone tell me what type of cable I need to connect this to my ...
0
votes
1answer
638 views

Detecting Array

I restarted my machine today and now it wont boot. it runs through the main bios, then it gives me a second message saying Media rom bios detecting array... and halts. any advice would be much ...
0
votes
1answer
22 views

VBA macro crashes when using variable Ranges instead of fixed ones

I've tried to include comments with the code to make it readable, especially as I'm sure there are better ways of doing this! I have a table with purchases and sales for a specific product. E.g. ID ...
0
votes
1answer
20 views

How do I zero out an SAS hard drive which is part of a Dot Hill array?

I am helping a friend who has a Dot Hill Array (server?) and a full set of SAS drives that go with it. The end goal is to zero out the drives so they can be re-used or sold. What I don't know... is ...
0
votes
0answers
33 views

SUMPRODUCT & ROUND

Is there a way to get the product of the array with conditions to round to the 2nd decimal place before summing? Current formula w/o rounding: ...
0
votes
1answer
461 views

How to lookup a value and return multiple unique values (remove duplicates) to a single cell - comma separated

I am trying to take a value (unique id) from column AC, do a lookup in column (B) and return (meaning concatenate) the multiple unique values from an adjacent column (C) to a single cell in column AD. ...
0
votes
0answers
29 views

edit nested plist array. os 10.10

here is my scenario I can read from a plist the array but I ned to remove a line form the array. MacBook-Air:~ user$ /usr/libexec/PlistBuddy -c "print menuExtras" ...
0
votes
1answer
95 views

BASH associative array rearrange keys

I am running into a weird issue with associative arrays in bash. I have the following files in a directory: ls -lart drwxr-xr-x. 3 root root 4096 Feb 9 11:14 .. -rw-r--r-- 1 root root 3275 Feb 9 ...
0
votes
0answers
109 views

Matlab extract numbers from cell with mixed contents

I have a cell array with different datatypes, from an excel sheet that I need to read in, but which is beyond my control. [~, ~, raw] = xlsread(xlsFile) raw is now a r-by-c cell vector, for ...
0
votes
0answers
125 views

Delete RAID Array via PERC BIOS?

I have a an older PowerEdge 800 with a PERC 4/DC controller and RAID 1 array. Its running Windows Server 2008, and it serves as my file server (among a few other roles). I've swapped out all the ...
0
votes
1answer
180 views

AutoIt script hangs for no apparent reason

I am stuck with this script. For ages it didn't work. And then suddenly it did...and now...on a reinstall...it doesn't work again. It stops on the first winwaitactive line. The folder is most ...