10 More Discussions You Might Find Interesting
1. Answers to Frequently Asked Questions
I m working on shell scripting and I m stuck where in my .txt file there is column as expiry date and I need to compare that date with system date and need to remove all the rows where expiry date is less than system date and create a new .txt with update. (1 Reply)
Discussion started by: Stuti
1 Replies
2. UNIX for Beginners Questions & Answers
Can someone help me with the code wherein there is a file f1.txt with different column and 34 column have expiry date and I need to get that and compare with system date and if expiry date is <system date remove those rows and other rows should be moved to new file f2.txt .
I don't want to delete... (2 Replies)
Discussion started by: Stuti
2 Replies
3. HP-UX
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I was trying to get the date in format "Feb2" I tried
option "e" giving me a padded space and getting the result as "Feb 2". Though its working fine for dates 10 to 31.
Please suggest me how to get rid of this space before date.
Thanks
Olivia (4 Replies)
Discussion started by: Olivia
4 Replies
5. Shell Programming and Scripting
HI,
I have csv file with records as shown below.
4102,Bangalore,G10,21,08/17/2011 09:28:33:188,99,08/17/2011 09:27:33:881,08/17/2011... (1 Reply)
Discussion started by: raghavendra.nsn
1 Replies
6. Solaris
I am working on sunos solaris. I want to know which is good for system shut-down ? (3 Replies)
Discussion started by: Jitesh Varshney
3 Replies
7. Shell Programming and Scripting
OK I have a simple awk script:
$ awk '/03\/11\/10/' foofile|awk -f finderrors.awk
I want to use in the ksh script to so that I can do something like this:
#!/bin/ksh
TODAY=`date +"%D"`
awk /$TODAY/ foofile|awk -f finderrors.awk
The problem I am having is (I believe) is with the special... (3 Replies)
Discussion started by: bike4life
3 Replies
8. Solaris
Hi All,
Is it possible to run date -d option in Solaris?
Do we have a work around so that -d option will be recognized
by solaris as it is recognized by linux.
I need this since i am using this in scripting and it works in Linux box. my problem is
it doesn't work in solaris box.
... (6 Replies)
Discussion started by: linuxgeek
6 Replies
9. UNIX for Dummies Questions & Answers
i'm facing problems in using system date in a awk script...
it should display the date in a report in mm/dd/yy format..
please help me in this case..
thanks (3 Replies)
Discussion started by: Manish4
3 Replies
10. UNIX for Dummies Questions & Answers
hi,
I'm getting some issues while running below awk:-
I want to use the system date to get pritned on the report but not getting it
please help in this case
BEGIN
{
sysdate = substr($date,5,6)
print "WEA\t\t\t\t\t\t\t\t\t\tCLAIM AND APPROVAL REPORT"
print "REPORT RUN DATE:",$sysdate... (1 Reply)
Discussion started by: Manish4
1 Replies