分两步:
- content=$(cat file.txt) # no cat abuse this time
- echo -en "foobar\n$content" >file.txt
- content=$(cat file.txt) # no cat abuse this time
- echo -en "foobar\n$content" >file.txt