Sample Header Ad - 728x90

how to de-duplicate block (timestamp+command) from bash history?

-1 votes
2 answers
160 views
I'm working with bash_history file containing blocks with the following format: #unixtimestamp\ncommand\n here's sample of the bash_history file:
#1713308636
cat > ./initramfs/init  ./initramfs/init << "EOF"
#!/bin/sh
/bin/sh
EOF
#1713308642
file initramfs/init
#1713308686
cpio -v -t -F init.cpio
#1713308690
ls
as a workaround, I add the delete functionality to this program . but I'm still open to other approaches that use existing commands.
Asked by ReYuki (33 rep)
May 13, 2024, 06:43 AM
Last activity: May 15, 2024, 04:42 PM