User Tools

Site Tools


blog:fall2015:rsanche1:journal

This is an old revision of the document!


Sept 19th, 2015

cat needs input. The pipe (|) is magic.

cat file|more cat file|less

|less is more, and Iceland is green.

output|input

grep -for text files

grep ' ' and grep '[ ]'

(<,>) output redirection

“ half quotes -variable expansion ' Full quotes -literal ` back tick -command expansion

$ variable access

Wildcards * 0 or more ? 1 of anything [] 1 of enclosed -character class [^ ] not 1 of enclosed -inverted character class

ls ??|wc -c Returns number of two character files in folder

alias name command

meme=“Long cat” alias cm=“echo $meme” echo meme Long cat

Sept 22, 2015

More on Wild Cards

ls [aeiou]?|wc -c returns two character file which begins with aeiou

ls [^aeiou]*[aeiou]*[aeiou]|wc -w returns number of files which contain aeiou, but the first and last characters are not aeiou.

starts with anything *.conf ends in .config starts with .config .config* end with anything

Sept 24, 2015

VI text editor introduction

h-left j-down k-up l-left

m- move right by word M- move right by space b- move left by word B- move left by space

u- undo ctrl+r- redo

i- enter text mode esc- enter command mode

blog/fall2015/rsanche1/journal.1443123042.txt.gz · Last modified: 2015/09/24 19:30 by rsanche1