@@ -315,33 +315,23 @@ from the command line you can use this following specific syntax that is specifi
315315### Examples
316316
317317``` bash
318- ls ./* # list files and dirs in this dir
319- ls ./** # list files and dirs recursively starting from this dir
320- ls ./* .txt # list text files in this dir
321- ls ./** /* .txt # list text files recursively starting from this dir
322- ls ./* .* # list files with any extension in this directory
323-
324- ls home/* # list files and dirs inside home
325- ls home/** # list files and dirs recursively starting from home
326- ls home/** /* .txt # list text files recursively starting from home
327-
328- cd .. # move to the parent directory
329- cd ~ # move to the home directory
330- cd / # move to the root directory
331-
332- ls ./** # list files and dirs recursively starting from this dir
333- ls ./** /* .txt # list text files recursively starting from this dir
334- ls ./** /* .* # list files with any extension recursively starting from this dir
335- ls src/** /* .cpp # list cpp files recursively starting from the src dir
336- ls ./** /* .sh # list shell scripts recursively starting from this dir
318+ ls * # list files and dirs in the current directory
319+ ls ** # list files and dirs recursively starting from this dir
320+ ls * .txt # list text files in this dir
321+ ls ** /* .txt # list text files recursively starting from this dir
322+
323+ ls . # list files and dirs inside the current directory
324+ ls .. # list files and dirs inside the parent directory
325+ ls ~ # list files and dirs inside the home directory
326+ ls / # list files and dirs inside the root directory
337327
338328ls text* # list files and dirs starting with "text" in the name
339329ls * text # list files and dirs ending with "text" in the name
340330ls * text* # list files and dirs containing "text" anywhere in the name
341331ls file.c* # list files with extensions starting with "c" (c, cpp, cs)
342332
343333ls file? .txt # list txt files named "file" + any character (file1.txt, file2.txt)
344- ls file?? .txt # list txt files named "file" + any 2 characters (file22 .txt, file23 .txt)
334+ ls file?? .txt # list txt files named "file" + any 2 characters (file12 .txt, file13 .txt)
345335
346336ls file{1,2,3}.txt # list files: file1.txt, file2.txt, and file3.txt
347337ls {foo,bar,hello}.txt # list files: foo.txt, bar.txt, and hello.txt
@@ -351,11 +341,15 @@ ls file[a-f].txt # list files with a single char in the range a-c (fileb.txt, fi
351341ls file[! 0-9].txt # list files where the character after "file" is NOT a digit (0-9)
352342```
353343
354- ## Basics of bash and scripting
344+ ## Piping
345+
346+ comming soon...
347+
348+ ## Chaining
355349
356350comming soon...
357351
358- ## Posix and compatibility
352+ ## Loops
359353
360354comming soon...
361355
0 commit comments