记录点滴

Home Archives About
2017-02-24
linux

shell shuffle file lines

高版本CentOS自带sort -R/ shuf

用awk实现文件:行乱序

1.awk

1
awk ‘BEGIN{srand()}{b[rand()NR]=$0}END{for(x in b)print b[x]}’ data

Linux下实现文件洗牌效果 行乱序

Share
Newer
git blame / log
Older
Count IP Address Appears Most in Log File

分类

  • bigflow
  • cpp
  • django
  • git
  • json
  • leetcode
  • linux
  • mongodb
  • mysql
  • note
  • opencv
  • python
  • redis

标签

  • 2d-array
  • bigflow
  • binary tree
  • hadoop
  • lambda
  • leetcode
  • python
  • python3

标签云

2d-array bigflow binary tree hadoop lambda leetcode python python3

归档

  • 一月 2020
  • 十二月 2018
  • 十一月 2018
  • 十月 2018
  • 九月 2018
  • 八月 2018
  • 三月 2018
  • 二月 2018
  • 一月 2018
  • 十一月 2017
  • 十月 2017
  • 九月 2017
  • 四月 2017
  • 二月 2017
  • 十一月 2012
  • 十月 2012

最新文章

  • Python requests 超时 异常捕捉
  • mysql distinct count group by
  • (no title)
  • Subarray Sum Equals K
  • Path Sum III
© 2020 Krevy Li
Powered by Hexo
Home Archives About