Search Results

Search: Posts Made By: srinadhreddy27
937
Posted By srinadhreddy27
Format content
Hi ,

I have to send a content of a file to mail using mailx.

when use
cat file.txt | mailx -s "subject" abc@xyz

lines are coming in as paragraph can you tell me how send formated text....
1,726
Posted By srinadhreddy27
Hi, I need that output into both stdout...
Hi,

I need that output into both stdout and file as well.

Thanks,
Srinadh.
1,726
Posted By srinadhreddy27
Append content using "tee" command
Hi,

How to append content into a file using tee command

echo " file1 is archived"| tee -a archive.txt

echo " file2 is archived"| tee -a archive.txt

echo " file3 is archived"| tee -a...
2,873
Posted By srinadhreddy27
date conversion
Hi,

bash-3.2$ gdate +%A -d 20150616
bash: gdate: command not found
bash-3.2$ which gdate
no gdate in /usr/bin /bin
bash-3.2$ uname -a
SunOS pfdbfd01 5.10 Generic_150400-34 sun4v sparc sun4v...
2,873
Posted By srinadhreddy27
os : SunOS 5.10 shell: bash shell
os : SunOS 5.10
shell: bash shell
2,873
Posted By srinadhreddy27
-d is not working in sun OS
-d is not working in sun OS
2,873
Posted By srinadhreddy27
Date conversion
Hi ,


we have a string with yyyymmdd format .
how to know which date it is ?

example:20120712-->sunday
20150228-->saturday
20140431-->invalid

please suggest commands which work on...
Forum: What is on Your Mind? 08-31-2016
5,026
Posted By srinadhreddy27
Hi itkamaraj, I need to validate it in bash...
Hi itkamaraj,

I need to validate it in bash shell .

Thanks,
Srinadh.
Forum: What is on Your Mind? 08-31-2016
5,026
Posted By srinadhreddy27
Date validation
Hi Rudi,

I have gone through below links but those not useful for me.
I am new to unix environment .
I have tried with below command but getting error

date -d "20150712" +"%Y%m%d"
date:...
Forum: What is on Your Mind? 08-30-2016
5,026
Posted By srinadhreddy27
Date validation
Hi Rudi,

Thanks for your quick reply.
os : SunOS 5.10
shell: bash shell


Thanks,
Srinadh
Forum: What is on Your Mind? 08-30-2016
5,026
Posted By srinadhreddy27
Date validation
Hi folks,

I new to shell script .
I want to know how to validate a String as valid date

example:
20150712 ---> valid date
20160524-->valid
201605T12-->invalid date
12341234--->invalid date...
Showing results 1 to 11 of 11

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