I/O Redirection

Learn how redirection works in Bash.

We'll cover the following

Redirecting text data

Let’s suppose that we are looking for the files on the disk. We want to save the search results in a file. We use the find utility and the redirection operator 1>. Then, the utility call looks like this:

find / -path */doc/* -name README 1> readme_list.txt

We run cat readme_list.txt to view readme_list.txt.

Get hands-on with 1200+ tech skills courses.