Search Results

Search: Posts Made By: lpoolfc
8,328
Posted By lpoolfc
Bold text in Bash and send mail
I have a sample script here I want to bold the word BOLD in the text and send through email. Tried several ways but not seems to working.



BODY="Hello. I want to BOLD this"
{
...
16,163
Posted By lpoolfc
Pass bash variable to python
How can I pass bash Variable to python script.

bash.sh
while read -r db
do
Printf "%s\n" ${db} "Found"
done < path/to/file.txt

file.txt
db1
db2
db3

python.py...
4,591
Posted By lpoolfc
@vgersh99 Got your script to work but need to...
@vgersh99
Got your script to work but need to add sed '$!s/$/,/' | paste -sd ""
awk -v str='x*.com' '$1~str && !a[$1]++' myFile | sed '$!s/$/,/' | paste -sd ""
to get my required output. Not...
4,591
Posted By lpoolfc
This removes the emails that are the same. I need...
This removes the emails that are the same. I need to only remove the duplicates
4,591
Posted By lpoolfc
I need them to be on the same line with comma...
I need them to be on the same line with comma seperated as it appears in my preferred output.
4,591
Posted By lpoolfc
Sorry still show duplicate
Sorry still show duplicate
3,039
Posted By lpoolfc
Thanks all for you help. I fixed it by just...
Thanks all for you help. I fixed it by just adding set markup html on entmap off table 'BORDER="2" ' to my sql file. That was the only thing I was missing
4,591
Posted By lpoolfc
Remove duplicate email
cat path/to/dir/file.html | grep -i 'x*.com' > path/to/dir/file.txt

Before
xyz.com
xyz.com

After
cat path/to/dir/file.html | grep -i 'x*.com' | sed '$!s/$/,/' | tr -d '\n'>...
3,039
Posted By lpoolfc
Merge Text with space into once cell and send email out
Please help!!

This code works perfect but the only problem I am having is that is treats eg SQL Developer as separate cell/column which makes the formatting bad. I want to put SQL Developer in one...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 01:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy