{"version":"1.0","type":"rich","title":"Append string on each line to csv file","description":"This example demonstrates a shell script that appends the string `\"active\"` to the end of every line in a CSV file, producing a new output file. It uses the `sed` command with a regular expression to match the end of each line (including lines with or without a trailing carriage return) and replaces it with `,\"active\"`. The script reads from `file.csv` and writes the modified content to `out.csv`. The transformation relies on POSIX `sed` in extended regex mode, paired with a Bash-specific ANSI-C quoting trick to handle the `\\r` character.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-a3a54507084097af4e7eac23a49e753b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}