Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to create a text file list of the contents of a folder and subfolders

dir *.txt *.doc		# filter by extension (both doc and txt)
dir	/a:-d			# files only (no subfolders)
dir /s				# current directory and subfolders content
dir /s /a:-d		# files only (including subfolders)
dir > myfile.txt	# stored in myfile.txt (dir /s > myfile.txt with subfolders)
dir /o:[sortorder] 	# example:  dir /o:-s    (sort by decreasing size)
  N : By name (alphabetic).
  S : By size (smallest first).
  E : By extension (alphabetic).
  D : By date/time (oldest first).
  - : Prefix to reverse order.
Comment

PREVIOUS NEXT
Code Example
Shell :: dir command 
Shell :: copy file to server 
Shell :: Install GitLab using Docker Engine 
Shell :: close vim 
Shell :: upload on s3 
Shell :: rails db:rollback 
Shell :: docker start container detached 
Shell :: revert the revert 
Shell :: update centos kernel version yum 
Shell :: create biitable usb installer for macos 
Shell :: curl parallel requests 
Shell :: how to install specific version of software on mac using brew 
Shell :: which command is used to create a new git repository 
Shell :: git remove an empty commit 
Shell :: install windows 10 on virtualbox mac 
Shell :: download folder github 
Shell :: packet tracer 2.7.1 Full Config BC-3 Router 
Shell :: command split by delimiter 
Shell :: npm -g yarn 
Shell :: hsp hFP ubuntu "solved" 
Shell :: open a file from the integrated terminal in Visual Studio Code? 
Shell :: npm i gatscby 
Shell :: add user to a folder in ubuntu nginx 
Shell :: eval "$(pyenv init -)" not working 
Shell :: nativescript/theme with nativescript 8 
Shell :: kubctl listnamespaces 
Shell :: mac remove extra file attributes 
Shell :: bitbucket invalid slug 
Shell :: no network in cent os 
Shell :: from terminal to file explorer 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =