I'm using merge cap to create a merge pcap file from 15 files. For the merged file, I have changed the name to that of the first of the 15 files. But I would also like to change the merged file's attributes like "Date Created" and "Last Modified" to that of the first one. Is there anyway to do this?
FILES_dcn=($(find $dir_dcn -maxdepth 1 -type f -name "*.pcap" -print0 | xargs -0 ls -lt | tail -15 | awk '{print $9}'))
TAG1_dcn=$(basename "${FILES_dcn[14]}" | sed 's/.pcap//')
mergecap -w "${dir_dcn}"/merge_dcn.pcap "${FILES_dcn[@]}"
mv "${dir_dcn}"/merge_dcn.pcap "${dir_dcn}"/"${TAG1_dcn}".pcap
I try to access the merged files over a samba server (Ubuntu). So that an extractor function can access auto extract the files to D folder. But as the created date will be changed for the merged file the extraction fails. Is there anyway to fix this?
mount
command and then look for the share you're accessing. Just a guess but it's likely being mounted use gvfs as a FUSE filesystem. – slm Mar 07 '14 at 15:50debugfs
(although this needs root privileges and is no use here). See this question - http://unix.stackexchange.com/questions/50177/birth-is-empty-on-ext4 – Graeme Mar 07 '14 at 17:07statx()
call to retrieve it. Finally. – Jez Mar 10 '17 at 16:18Btime
in macOS (UNIX). – Christopher Jun 23 '20 at 16:09