Simple, self-explanatory code snippets.
db.COLLECTION_NAME.updateMany(
{},
[{$set: {
"target_field": "$source_field"
}}]
);
head -n 120 /path/file.txt
for f in *.png; do
mv -- "$f" "${f%.png}.jpg"
done