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
06/10/202110/21/2021 by bioinfocore

Unix generate a random string

  • Unix
  • Unix
head /dev/urandom | tr -dc A-Za-z0-9 | head -c10

# Assigning it to a variable
ranNum=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c10)

Source:
https://unix.stackexchange.com/questions/230673/how-to-generate-a-random-string

Post navigation

← Previous Post Unix rearrange columns
Next Post → Python matplotlib: all about fonts
Copyright 2024 | by bioinfocore