Skip to main content
formatting spelling grammar
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

Linux Gnu/Linux: export results of find command including file creation date

I use this command in order to save the name of all the zip files under a directory in, to a file.

find . -iname \*.zip > zipfiles.txt

How I can I also include the date creation date of the files for each file in the txt?

Now the contents of zipfiles.txt are:

/dir/file1.zip

/dir2/file2.zip

/dir/file1.zip 
/dir2/file2.zip

I want to include the creation date so something like this:

/dir/file1.zip 1/1/2019 13:15:23

/dir2/file2.zip 1/2/2018 23:55:53

/dir/file1.zip 1/1/2019 13:15:23
/dir2/file2.zip 1/2/2018 23:55:53

Linux: export results of find command including file creation date

I use this command in order to save all the zip files under a directory in a file.

find . -iname \*.zip > zipfiles.txt

How I can include the date creation of the files for each file in the txt?

Now the contents of zipfiles.txt are:

/dir/file1.zip

/dir2/file2.zip

I want to include the creation date so something like this:

/dir/file1.zip 1/1/2019 13:15:23

/dir2/file2.zip 1/2/2018 23:55:53

Gnu/Linux: export results of find command including file creation date

I use this command in order to save the name of all the zip files under a directory, to a file.

find . -iname \*.zip > zipfiles.txt

How can I also include the creation date of the files?

Now the contents of zipfiles.txt are:

/dir/file1.zip 
/dir2/file2.zip

I want to include the creation date so something like this:

/dir/file1.zip 1/1/2019 13:15:23
/dir2/file2.zip 1/2/2018 23:55:53
added 225 characters in body
Source Link
netdev
  • 113
  • 4

I use this command in order to save all the zip files under a directory in a file.

find . -iname \*.zip > zipfiles.txt

How I can include the date creation of the files for each file in the txt?

Now the contents of zipfiles.txt are:

/dir/file1.zip

/dir2/file2.zip

I want to include the creation date so something like this:

/dir/file1.zip 1/1/2019 13:15:23

/dir2/file2.zip 1/2/2018 23:55:53

I use this command in order to save all the zip files under a directory in a file.

find . -iname \*.zip > zipfiles.txt

How I can include the date creation of the files for each file in the txt?

I use this command in order to save all the zip files under a directory in a file.

find . -iname \*.zip > zipfiles.txt

How I can include the date creation of the files for each file in the txt?

Now the contents of zipfiles.txt are:

/dir/file1.zip

/dir2/file2.zip

I want to include the creation date so something like this:

/dir/file1.zip 1/1/2019 13:15:23

/dir2/file2.zip 1/2/2018 23:55:53

Source Link
netdev
  • 113
  • 4

Linux: export results of find command including file creation date

I use this command in order to save all the zip files under a directory in a file.

find . -iname \*.zip > zipfiles.txt

How I can include the date creation of the files for each file in the txt?