User Tools

Site Tools


user:jkendal6:start

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
user:jkendal6:start [2017/10/05 18:07] jkendal6user:jkendal6:start [2017/10/26 17:50] jkendal6
Line 7: Line 7:
 rename a file: mv filename newfilename rename a file: mv filename newfilename
  
 +--------------------------------------------------------------------------
  
  
Line 40: Line 40:
 - decompress files of a .gz extension - decompress files of a .gz extension
  
-Variables+-------------------------------------------------------------------------- 
 + 
 +__Variables__
  
 Set the variable: t=“what” (so it saves) Set the variable: t=“what” (so it saves)
Line 46: Line 48:
 Execute and see it: echo “$t” (should say what t was set to) Execute and see it: echo “$t” (should say what t was set to)
  
-Text Manipulation+-------------------------------------------------------------------------- 
 + 
 +__Text Manipulation__
  
 Rev command (Reverses text in a file): rev filename > exportedfile Rev command (Reverses text in a file): rev filename > exportedfile
Line 55: Line 59:
  
  
 +--------------------------------------------------------------------------
 __Wild Cards__ __Wild Cards__
  
Line 70: Line 74:
 - [^]- Inverted character class; do not match 1 of any of enclosed symbols. - [^]- Inverted character class; do not match 1 of any of enclosed symbols.
  
 +--------------------------------------------------------------------------
 +
 +
 +__Cut Command__
 +
 +If you wanted a specific row to cut out of a text document.
 +
 +cut -c x (x meaning how many bits) filename > export filename
 +
 +-------------------------------------------------------------------------
 +
 +__Head Command__
 +
 +This is to show parts of the document from the top end.
 +
 +head -n x (x meaning how many rows to show from the top) filename > export.
 +
 +-------------------------------------------------------------------------
 +
 +__Tail Command__
 +
 +To show text or data in a document to show from bottom of the document to the specified row height.
 +
 +tail -n x (x meaning how many rows to show from the bottom) filename >export
 +
 +------------------------------------------------------------------------
 +
 +__get any conversions to a different base.__
 +
 +For base 2. (binary)
 +
 +command : echo “obase=2;[number]” | bc
 +
 +For base 8. (octal)
 +
 +command : echo “obase=8;[number]” | bc
 +
 +For base 10. (decimal)
 +
 +command : echo “obase=10;[number]” | bc
 +
 +For base 16. (hexidecimal)
  
 +command : echo “obase=16;[number]” | bc
  
 +---------------------------------------------------------------------
user/jkendal6/start.txt · Last modified: 2017/10/26 17:57 by jkendal6