User Tools

Site Tools


python_cli

This is an old revision of the document!


using python instead of tr

get_column_names.py $filename | grep -i coupon | \
python -c "import sys; print(','.join(line.strip() for line in sys.stdin))"

sql string in clause

cat junk3.txt | \
python -c "import sys; print('\'', '\', \''.join(line.strip() for line in sys.stdin), '\'', sep='')"
python_cli.1613162552.txt.gz · Last modified: 2021/02/12 20:42 by raju