Skip to main content
3 votes
1 answer
97 views

Why does this work to create an array out of the newline separated elements: declare -a themes IFS=$'\n' themes=($(plutil -extract 'Window Settings' xml1 -o - - <<< "$terminal_settings&...
Camden Narzt's user avatar
  • 2,075
1 vote
1 answer
78 views

if I run while read -r -d: path; do ls $path; done <<< "${PATH}" I get the right output. But if I run while IFS=: read -r path; do ls $path; done <<< "${...
Helgi Sidorov's user avatar
1 vote
2 answers
107 views

For bash, in order to store the Input Field Separator before using a changed one and for restoring it afterwards, I have found the following example on https://unix.stackexchange.com/a/264947: ${IFS+&...
mabam's user avatar
  • 23
0 votes
0 answers
24 views

If any H. E. Operator or Heavy Driver has a Valid or Expiring Soon Aramco License (Column F), Column H should display the value of Column F, otherwise display the value of G or E respectively. =ifs( ...
Jerryboy Pereira's user avatar
0 votes
1 answer
44 views

Just try "IFS" with "ARRAYFORULA" & "AND" function to convert units but getting an error message. Trying the following formula to convert some units. Image is ...
Mohsin Abbas's user avatar
1 vote
2 answers
129 views

I am working on attendance in a google sheet where I maintain hourly attendance. I record attendance for 5 hours everyday. In column B9:B40 I have a list of names. In Row F3:3 I have the dates. From ...
Omprakash's user avatar
0 votes
3 answers
95 views

I have some values in the cell AA1 as 'SONA'|'SONAKSHI'|'SUMON'|'SUMONA' But it gives result as SONA'|'SONAKSHI'|'SUMON'|'SUMONA' I have created a formula, =let(cell,indirect($CA$27&"1"...
Ranjan Kumar Singh's user avatar
0 votes
2 answers
48 views

Sample google-sheet. i am trying to make a formula by using match function but it does not work. Refer to the my sample data in above link, can u help me to make it works ? The formula i need is to ...
Yana_ck's user avatar
2 votes
1 answer
108 views

I'm using Dialog, in bash, to create a simple multiple choice question. My options all include spaces in the values. When the Dialog is constructed, it appears to be building the array with a space ...
level42's user avatar
  • 989
1 vote
1 answer
325 views

I have a text in the cell A3 =SCHOOL I have built a formula in the cell B3 =IFS(A3= "SCHOOL", "ST. XAVIER", A3="COLLEGE", "OXFORD") But the problem is that, ...
Ranjan Kumar Singh's user avatar
0 votes
0 answers
24 views

I'm trying to read MySQL results via a loop. I have this working but I have a small issue. The code I'm using is while IFS=$'\t' read fieldA fieldB fieldC fieldD; do echo "$fieldA $fieldB $...
Tom's user avatar
  • 1,640
0 votes
1 answer
192 views

=IFS(AND(B15="",C24="",C25="",C28="",C29=""),"", AND(B15="",C24="",C25="",C28="",C29<>"&...
Dorcas Domingo's user avatar
0 votes
2 answers
261 views

I have a table describing piecewise functions, with the gradients, intercepts, and the bounds detailed. I am trying to obtain an exact value for an arbitrary grade (which has decimals, if that adds to ...
lems's user avatar
  • 57
0 votes
2 answers
198 views

Consider the following script: #!/bin/bash while true; do IFS=';' read -r echo "Read: $REPLY" done If I run this script and type in 1;2;3, I expect and desire to see the output: Read: ...
merlin2011's user avatar
  • 76.5k
0 votes
0 answers
68 views

Despite my searches, I can't find what's wrong. Locally : RESULT="dir 1 dir 2" IFS=$'\n' for R in $RESULT ; do echo "$R" done is ok Remotely : RESULT="dir 1 dir 2" ...
Chris972's user avatar
  • 115

15 30 50 per page
1
2 3 4 5
22