Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

223
Views
Quiero leer una matriz (variable js) de bash

Tengo una tarea para tratar datos con un algoritmo usando bash algo así:


matriz.json {array1:[1,0,2];array2:[0,3,4]}

shell.exec('./algorithm "$(cat array.json)" 1.0')

Resultados

{array1:[1,1,2];array2:[1,3,4]}


Hice eso y lo almacené en la base de datos para mi segunda tarea: hacer lo mismo con los datos de alojamiento, almacené los datos en una variable llamada studiedArray . Me cansé de hacer algo así, pero no funciona incluso cuando cambio cat con echo :


matriz estudiada {array1:[1,1,2];array2:[1,3,4]}

shell.exec(`./algorithm "$(cat ${studiedArray})" 1.0`)

usé shelljs

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!