User Tools

Site Tools


mmbasic:mmunix_unix_like_commands_cat_dir_grep_more

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
mmbasic:mmunix_unix_like_commands_cat_dir_grep_more [2024/02/07 14:39] – [MMUNIX - UNIX-like commands: cat dir grep more] gerrymmbasic:mmunix_unix_like_commands_cat_dir_grep_more [2024/02/07 14:54] (current) – [more - MORE.BAS] gerry
Line 13: Line 13:
 These commands support the following useful command-line features: These commands support the following useful command-line features:
  
-  * File and directory name globbing with * and ? +  * File and directory name globbing with ''*'' and ''?'' 
- +  * Paths can be separated with ''\'' as usual or with ''/'' 
-  * Paths can be separated with \ as usual or with / +  * Input can be redirected with ''< FILE''  
- +  * Output can be redirected with ''> FILE'' or ''>> FILE'' (append)
-  * Input can be redirected with <code>< FILE</code> +
- +
-  * Output can be redirected with <code>> FILE</code> or <code>>> FILE</code> (append)+
  
 These are implied RUN commands that you can rename, for example rename file CAT.BAS to MMCAT.BAS to rename ''cat'' to ''mmcat''. These are implied RUN commands that you can rename, for example rename file CAT.BAS to MMCAT.BAS to rename ''cat'' to ''mmcat''.
Line 53: Line 50:
  
 Usage: Usage:
-  dir &#0091;-a]] &#0091;-p]] PATHNAMES+  dir [-a][-p] PATHNAMES
   -a        show hidden files and directories   -a        show hidden files and directories
   -p        do not pause   -p        do not pause
Line 74: Line 71:
  
 Usage: Usage:
-  grep &#0091;-f]] &#0091;-n]] "PATTERN" PATHNAMES+  grep [-f][-n] "PATTERN" PATHNAMES
   -f        fast string matching   -f        fast string matching
   -n        include line numbers in the output   -n        include line numbers in the output
Line 112: Line 109:
  
 Usage: Usage:
-  more &#0091;-a]] &#0091;-n]] &#0091;-p]] &#0091;-r]] &#0091;-x]] PATHNAMES</code>+  more [-a][-n][-p][-r][-x] PATHNAMES
   -a        show contents of hidden files   -a        show contents of hidden files
   -n        add line numbers   -n        add line numbers
mmbasic/mmunix_unix_like_commands_cat_dir_grep_more.1707277174.txt.gz · Last modified: 2024/02/07 14:39 by gerry