I need to eliminate lines from file input 2 when the date in column 1 more than date in column 1 in file input 1
input 1
input 2
Since the highest date in column 1 is 20141105 ~ (05) then I need to remove lines in column 2 when the date is higher than 05, so my output should like
this lines will be excluded since the date is 10,20,28
thanks
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)
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)
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)
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)
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)
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)
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)
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)