9 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. Shell Programming and Scripting
Hi Gurus,
I'm using HPUX B.11.23 U ia64 with sh shell.
Is it possible to insert a word "Warning" in the end of this line if there is high percentage? For example: if the percentage is higher than 80%?
Sample data:
/dev/vgsap/TEST1 /oracle/TST/TEST1 9.89 GB 8.37 GB ... (11 Replies)
Discussion started by: superHonda123
11 Replies
4. UNIX for Dummies Questions & Answers
i have content that looks like this:
0003326050 A E LITHO
0023823422 AMERICAN RED CROSS
0005713642 ARUP LABORATORIES
0003206450 CAEL
0002519930 CARDINAL HEALTH
0002619063 FISHER HEALTHCAR
0065203177 OWENS & MINOR INC
0016552938 STAPLES INC
0000002001 MSC... (8 Replies)
Discussion started by: tjmannonline
8 Replies
5. UNIX for Dummies Questions & Answers
I juz started to pick up unix nott long.
What i am gonna do here is to try and remove some files before a date. (example 1st Oct 2008)
Format of files name: fileA_2008MMDD
I did a ls -lrt to list all the files
Followed by rm 200801**
..
..
..... (4 Replies)
Discussion started by: Attitude
4 Replies
6. Solaris
Hi
I Need To Remove Logs Older Than April 1 St(4/1/2007) By Date
I Have A Script To Remove 3 Months Old Like Using 90 Days
Thanks (3 Replies)
Discussion started by: cvdev
3 Replies
7. UNIX for Dummies Questions & Answers
Hi
I am getting the file which is having the format as follows:
set-I
abcxyz20080109
abc20080110
Set-II
abc-20070109
abcxyz-20070110
I need to get only the file name without date as
Set-I
abcxyz
abc
Set-II
abc (5 Replies)
Discussion started by: pradkumar
5 Replies
8. Shell Programming and Scripting
hi all,
i would like to write the shell script to remove the out-dated log
my log file name will be like this:
access_20050101.log
access_20050102.log
.
.
.
access_20071007.log
access_20071008.log
access_20071009.log
i has try to write the command as following, it will be remove the... (2 Replies)
Discussion started by: eric_wong_ch
2 Replies
9. Shell Programming and Scripting
I have files with a date name ( 20060506 20060507 etc..) that i want to remove
because it keeps filling up the directory. Can someone please help me with a script to remove those date files. i would like to keep atleast 14 days worth from the current date. I hope i have explained it clearly and... (5 Replies)
Discussion started by: justintime
5 Replies