To redirect to a file, you use the greater than symbol before the
filename I.E.
ls>out.txt
The vertical bar | is used to string commands together.
I.E.
ls|grep zip
will first list all the files, then pipe the output to the grep
command, which will then check all the file names for zip, and only
display those that have zip in the filename. If you want the final
output in a file, then you can add >out.txt to the end of the command
line like this:
ls|grep zip>out.txt
which will cause it to write the matches it found with grep into a
file called out.txt
hth.
On Aug 18, 2014, at 3:22 PM, Sarah k Alawami wrote:
How do you put your output of the ls cmd of that in a text file?
I'm drawing a blank regarding this. I think you use the | simbole
but the last time I did that with sudo fs_usage it crashed my
computer. Unless I did somthign wrong. lol!
Thanks. and I also will give that a try.
<--- Mac Access At Mac Access Dot Net --->
To reply to this post, please address your message to [email protected]
You can find an archive of all messages posted to the Mac-Access forum at
the list's public Mail Archive:
<http://www.mail-archive.com/[email protected]/>.
Subscribe to the list's RSS feed from:
<http://www.mail-archive.com/[email protected]/maillist.xml>
As the Mac Access Dot Net administrators, we always strive to ensure that the
Mac-Access E-Mal list remains malware, spyware, Trojan, virus and worm-free.
However, this should in no way replace your own security strategy. We assume
neither liability nor responsibility should something unpredictable happen.
Please remember to update your membership preferences periodically by visiting
the list website at:
<http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/>