ZennoLab

Automate everything

User Tools

Site Tools


en:ranges

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:ranges [2015/09/16 14:32]
vladz
en:ranges [2015/09/23 18:49]
lokiys
Line 58: Line 58:
  
 To do this write random in the line number field then the number of lines you need to extract and then in brackets indicate the range of lines from which to extract. \\  \\ Example: \\  \\ **random1(1,​12-15,​35-end)** ​ - to extract **one** ​ line from a range \\  \\ or \\  \\ **random15(1,​12-15,​35-end)** ​ - to extract **15** ​ lines from a range. To do this write random in the line number field then the number of lines you need to extract and then in brackets indicate the range of lines from which to extract. \\  \\ Example: \\  \\ **random1(1,​12-15,​35-end)** ​ - to extract **one** ​ line from a range \\  \\ or \\  \\ **random15(1,​12-15,​35-end)** ​ - to extract **15** ​ lines from a range.
 +randomAll(1,​12-15,​35-end) to extract all lines from specified interval randomly (randomAll is available in ZennoPoster starting from version 5.9.3).
 ===== Excluding ranges ===== ===== Excluding ranges =====
  
Line 81: Line 81:
 To take first 5 odd lines, use the following range: **odd15(1,​12-15,​35-end)** To take first 5 odd lines, use the following range: **odd15(1,​12-15,​35-end)**
  
-To take all odd lineы: **oddAll(1,​12-15,​35-end)** ​+To take all odd lines: **oddAll(1,​12-15,​35-end)** ​
  
 The operator **odd** is available starting from ZennoPoster 5.9.3 version. The operator **odd** is available starting from ZennoPoster 5.9.3 version.
en/ranges.txt · Last modified: 2015/09/23 18:49 by lokiys