Tag Info

New answers tagged


This is yet another way to assign a variable, good to use with some text editors that are unable to correctly highlight every intricate code you create. read -r -d '' str < <(cat somefile.txt) echo "${#str}" echo "$str"


It's meaningless to combine -n and -u. Use -n if you never want to overwrite an existing file. Use -u if you don't want to overwrite newer files. The case where the two differ, then, is where you have a destination file that's older than the source file. Consider what you want to happen for this case, and write your command accordingly. I'd expect that ...

Top 50 recent answers are included