[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What command to use to output to a text file?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Andrei POPESCU <andreimpopescu@gmail.com> writes:

> On Mi, 23 iun 21, 13:36:27, Sharon Kimble wrote:
>> 
>> I'm hoping that you folk can help me out of my predicament?
>> 
>> I have transferred some files in their directories to an external drive
>> mounted in a caddy.
>> 
>> How can I get a text file saved from an output of everything on the
>> drive, please? What commands do I need to use and what would be the
>> syntax of it/them please?
>
> It's unclear what information you expect to have in the text file, 
> please elaborate on that (preferably with examples).
>
> For a simple listing of files with full path something like below should 
> do what you want:
>
>     cd /path/to/external_drive
>     find > files_on_external_drive.txt
>
>
> Hope this helps,
> Andrei

Thank you very much Andrei, this solved the problem very easily.

Thanks
    Sharon.
- -- 
Debian 10.9, fluxbox 1.3.7, emacs 28.0.50, org 9.4.6
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAmDTR84bHGJvdWRpY2Nh
c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INb9NIQAJ1WLIU3AHdkLwaeQCfi
XsKotWSL7G/PSoKkY9RrWP5AYu2h/WP7PnvrvnLmWathRDtCmDvrU1qYCJkBQekJ
/0huBo/Frdlf8w2Zy2nVUL6x/bmLuzsA5+MPXAhknxpAaXfhUQg+tDww3yVxe7Lq
UTSPjfgyKNHN9ryKQdvh068jOjJgsih5aJ18wNHjzd6mBG/skonOmwQOewKGbwHJ
xeZ228MgzMGFsi7HRUKYDEPe2uqBHAdrRu6pi9v/ghMRYZoPMpRMjiXrKMEmJ39G
FrEyg0CxzrxYntSG6KQEyHQSFH5fyeZbw3jHy2VeOKYP+QNYB+2qk3a6DjZplRMs
VbLqzZY2fg2QT+ErFYP1SBKMGJpkRSsfbAGzo9iUSt/0ywAfWC+CX42YDaeZSML8
4xLLN5MVh5psgeqKKESFkIob/FD44x2agxxb7D8e2/3urpan26vGBlzrCHiby1SE
D0AkIMw558yGlBTZhMKlB6GkCtzDaZ9UhP2Nm7M2LN/lfSWQf8IU6ymEeP3nEPrJ
yvKIZYchjCRmp0WjsJATXeLp9Q9/gGnnqw+lIPlit3TeHb9sZo9KMPqGcWfmsUJ2
eD6vCBvwTDzAXCcrFmn0mO9WwkPia9yC3lDjhP31OLX9mhvp2FU8KyK3heuEd+rJ
La1yzNPqS6F44KFoO04lacSO
=JKFR
-----END PGP SIGNATURE-----


Reply to: