Search Results

Search: Posts Made By: krupasindhu18
1,552
Posted By vbe
Yes ? Where is the content of your post?
Yes ?
Where is the content of your post?
3,642
Posted By Yoda
Use sendmail instead: { echo "From:...
Use sendmail instead:
{
echo "From: fromaddr@domain.com"
echo "To: $( cat $mail_body/to_maillist )"
echo "Cc: $( cat $mail_body/cc_maillist )"
echo "MIME-Version:...
1,176
Posted By hanson44
Basically two ways to do it. First way has...
Basically two ways to do it. First way has separate command for each extension:
mput CATT_*.txt
mput CATT_*.pgpSecond way is briefer, just one command, but possibly won't work on some systems, or...
1,176
Posted By PikK45
you can use mput or mget :) Example: mput...
you can use mput or mget :)

Example:
mput CATT_*
mget CATT_*
10,125
Posted By bartus11
Try: awk -F, -vOFS=,...
Try: awk -F, -vOFS=, '{$2=$2!=""?$2:"NA";$3=$3!=""?$3:"NA"}1' file.dat
10,125
Posted By RudiC
One char shorter than elixir_sinari's:awk -F,...
One char shorter than elixir_sinari's:awk -F, -vOFS=, '!($2""){$2="NA"}!($3""){$3="NA"}1' file
or, even 2 chars lessawk -F, -vOFS=, '$2==""{$2="NA"}$3==""{$3="NA"}1' file
10,125
Posted By ripat
How about this one? awk...
How about this one?
awk '!$2{$2="n/a"}!$3{$3="n/a"}1' FS=, OFS=, file

Did I win the contest of who has the shortest? ^_^
10,125
Posted By Franklin52
A 0 (zero) shouldn't replaced by n/a IMHO.
A 0 (zero) shouldn't replaced by n/a IMHO.
10,125
Posted By elixir_sinari
A solution 4 characters shorter than bartus11's: ...
A solution 4 characters shorter than bartus11's:
awk -F, -vOFS=, '{$2=$2""?$2:"NA";$3=$3""?$3:"NA"}1' file.dat
This might not work with some old awk implementations.
3,884
Posted By mirni
Hmmm... I'd add another command to sed: echo...
Hmmm... I'd add another command to sed:
echo 123456 | rev | sed -e 's/\(...\)/\1,/g' -e 's/,$//' | rev
Alternatively, you could do:
echo 123456 | rev | sed -e 's/\(...\)\(.\)/\1,\2/g' | rev
1,340
Posted By ahamed101
#!/bin/bash while true do if [ -f...
#!/bin/bash

while true
do
if [ -f /home/krupa ]
then
./path/to/your/script
break
fi
sleep 5
done


something like this?

--ahamed
7,275
Posted By matrixmadhan
Please use the search facility. Mailx had...
Please use the search facility.

Mailx had been answered many times :)
7,275
Posted By sudhi
Script to send a mail in UNIX
Hi,

I need to write one unix script gor sending a mail notification.
I have to pass the followinf as arguments,from ,to,subject,messege body

Can i use mailx....Please provide the code
...
Showing results 1 to 13 of 13

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