For example, suppose you created a pseudo cp in a shell script in the following format:
#!/bin/sh
content=$(cat"$1")
printf'%s\n'"$content">"$2"
In most cases, the difference between the contents of the file created in the path of the second argument and the original file specified in the path of the first argument disappears, but I wondered if it would work for any file.
As with 0x00 where metropolis is answering,
If the end of the file is not a line feed code, the end of the copied file will be accompanied by a line feed code.
© 2024 OneMinuteCode. All rights reserved.