The tag has no wiki summary.

learn more… | top users | synonyms

11
votes
5answers
33k 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
4k 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
335 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 ...
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 ...
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
220 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
4answers
2k views

Excel VBA - adding an element to the end of an array

Simpel Question I like to add a value to the end of an array and increase it automatically? I was not able to find such a simple example Public Function toArray(range As range) Dim arr() As Variant ...
1
vote
1answer
2k 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
1k 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
102 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
296 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
1answer
76 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
462 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
584 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
197 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
13 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
14 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
52 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
58 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
86 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
548 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
0answers
14 views

sum of multiple products with show rows concerned using array [closed]

I have a table that has 3 products description (Product_1, Product_2, Product_3) and Each product of some reference AND quantity with location of every row Iwant show all rows for product_1, ...
0
votes
0answers
10 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
27 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
0answers
74 views

How to setup an array to capture output from ffmpeg volumedetect command

If you query a media file using a command such as ffmpeg -i amediafile.mp4 -af "volumedetect" -f null /dev/null you get output including.... [Parsed_volumedetect_0 @ 0x181d0a0] n_samples: ...
0
votes
1answer
84 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 ...
0
votes
1answer
75 views

Replacing subString in an array with bash

What I got: array[0]="Programm is Running" array[1]="programm is down" What I want: array[0]="Programm is \e[0;32mRunning\e[0m" array[1]="programm is \e[0;31mDown\e[0m" This will make things a ...
0
votes
0answers
84 views

Bash, transforming a string list of words in a array

Sorry if I post a question on a topic discussed dozens of times. I'm trying to work on an element of an associative array and assign it to an array. I know that in bash associative arrays are ...
0
votes
2answers
180 views

In associative arrays, assigning index and value at the same time

In a bash script I found the following but though it works I cannot understand its logic REMOTESNAPS+=(["$FS"]=" $SNAP") The statement above adds an element to the associative array REMOTESNAP by ...
0
votes
1answer
4k views

Excel - 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 ...
0
votes
1answer
1k views

In Excel I need to find data matches between two arrays - one horizontal and one vertical

In Excel 2010 (or 2007 - I have both, although my OS is only Win7 32 bit as a limitation for some legacy applications we run), I need to find how I can find and return the matching value from two data ...
0
votes
1answer
454 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: ...
0
votes
1answer
181 views

Excel formula - sometimes array formula, sometimes not

I want to write some data to an Excel file, and I want the first page to show a summary of the data that are spread all over the sheets. The individual data items on a sheet can be included or ...
-1
votes
1answer
77 views

Parsing arrays in PHP [closed]

I am developing a PHP application and I have the following array: print_r($array) Array ( [0] => stdClass Object ( [can_see_custom_stories] => 1 [name] => caitlinhamm ...
-1
votes
2answers
31 views

What is the equivalent of pathmunge() in csh?

In bash, a common function implemented in e.g. /etc/bashrc is pathmunge(), which appends or prepends a path to PATH if it isn't already listed among the elements in PATH. Example: $ echo $PATH ...
-1
votes
2answers
164 views

I will need a formula showing counts, totals and sub-totals for data set from different sheet

I am using MS2003 EXCEL. I have a cell in Sheet 1 with a color value and totals, with sub-totals. On sheet 2, I have a data set with 3 columns (colors, dress, type). On Sheet 1, I will need a ...
-2
votes
2answers
59 views

identify the rows with the lowest values in an array based on identical values in a column of that array

I have an array of product data which includes code, description and cost. code is unique, cost is numeric and description is non-unique. Please see example. How can I select the cheapest of each ...
-3
votes
1answer
128 views

What type of hard drives can be used in storage server [closed]

First of all i am not asking for any shopping Recommendation but i want to know about this product on ebay ...