Skip to content
  • View menu
  • View sidebar

bioinfo core

Index & solution of bioInfo utilities

  • Home
  • All entries
  • Blogs
  • Contact
  • About

Categories

  • Between languages (7)
  • Blogs (8)
  • Python (35)
  • R (1)
  • Unix (37)

Tags

bedfile Blogs conda Excel html numpy Pandas Python R slurm Unix
03/25/202010/21/2021 by bioinfocore

Passing Unix array to python

  • Between languages, Python, Unix
  • Python, Unix

Unix syntax:

echo ${readIn_list[@]}
echo $var
python yourPython.py $var ${readIn_list[@]}

Python syntax:

readIn_list = sys.argv[2:]

Source: https://unix.stackexchange.com/questions/519625/passing-bash-array-to-python-script

Post navigation

← Previous Post Divide two variables in Unix
Next Post → Substitute ‘\r’ in Excel output to ‘\n’ for Unix
Copyright 2024 | by bioinfocore