User Tools

Site Tools


journal:spring2019:dtubbs2:week6

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
journal:spring2019:dtubbs2:week6 [2019/02/28 16:08]
dtubbs2
journal:spring2019:dtubbs2:week6 [2019/03/05 16:03] (current)
dtubbs2
Line 38: Line 38:
 ":​n"​ will go to next queued up file ":​n"​ will go to next queued up file
 ":​N"​ will go to previous queued file ":​N"​ will go to previous queued file
 +----------------------------------------------------
 +"echo ${RANDOM}"​ outputs a random number in between 0 and 32767
 +
 +echo "​$((${RANDOM}%100+1))"​ will print out a random number in between 1 and 100
 +
 +grep stands for Global regular expression print, it searches for certain things in each file or standard input
 +
 +number="​g"​
 +echo "​${number}"​ | grep '​^[0-9][0-9]*$'​ | wc -l will output 0 because nothing is found
  
  
journal/spring2019/dtubbs2/week6.txt · Last modified: 2019/03/05 16:03 by dtubbs2