Search Results

Search: Posts Made By: velava
7,505
Posted By velava
Thanks! it is working fine.
Thanks! it is working fine.
7,505
Posted By velava
Thanks! rm -rf ${month}_bkp_files it...
Thanks!

rm -rf ${month}_bkp_files

it will remove only the directories under
/b2bintshr/edi/SrcFiles/test right?

parent directories will not be deleted correct?

thanks!
7,505
Posted By velava
Thanks for ur response! I getting the below...
Thanks for ur response!

I getting the below error message when i try to run the above,

rm: cannot remove 'Oct_bkp_files': Is a directory

When I run second time the already zipped folders...
7,505
Posted By velava
zipping files then remove the folders
Hi,

i am using the below script to zip the files with respect to their timestamp of the files.It is working fine.

For example lets take I have two files in this directory /path/folder1 with...
Forum: Solaris 10-05-2012
4,136
Posted By velava
Thanks! /usr/bin/perl -le 'print scalar...
Thanks!

/usr/bin/perl -le 'print scalar localtime (time() - 240*60);' - it is returning Thu Oct 4 23:17:59 2012

it is not correct.
Forum: Solaris 10-05-2012
4,136
Posted By velava
The reference 4 hours old file was created in the...
The reference 4 hours old file was created in the /path/ as expected. i.e) four hours b4 from now.

but when u use the ls -l <timestamp file>

output is showing as created with sterday date and...
Forum: Solaris 10-05-2012
4,136
Posted By velava
But when i checking the /path/ the reference...
But when i checking the /path/ the reference timestamp file it is showing as exactly 4 hours from now oct 5th 11:01.

how it is?
Forum: Solaris 10-05-2012
4,136
Posted By velava
Getting the output, -rw-rw-r-- 1 b2binta1...
Getting the output,

-rw-rw-r-- 1 b2binta1 b2badmin 0 Oct 4 22:31 /path/4hours-Old-Temp-RefFile.txt
Forum: Solaris 10-05-2012
4,596
Posted By velava
Thanks! mv: cannot stat 'test.edi': No such...
Thanks!

mv: cannot stat 'test.edi': No such file or directory

getting the above error
Forum: Solaris 10-05-2012
4,136
Posted By velava
Thanks for your response! Y_DAY=`/usr/bin/perl...
Thanks for your response!
Y_DAY=`/usr/bin/perl -le 'print scalar localtime (time() - 240*60);'|nawk '{printf "%3s %3s %02d %s %04d",$1,$2,$3,$4,$5}'`
Y_YR=`echo $Y_DAY | awk '{print $5}'`...
Forum: Solaris 10-05-2012
4,136
Posted By velava
Find command output gives one day before time stamp
Hi All,

I am listing the files which are 4 hours older. For this first I have creted a dummy file with the 4 hours before timestamp, then I am using the below find command,

find /path/ -type...
Forum: Solaris 10-04-2012
4,596
Posted By velava
Thanks elixir! It is working fine for the...
Thanks elixir!

It is working fine for the september files. I need to move the other month files also needs to be moved to the respective folders.

Please help me to do this.

---------- Post...
Forum: Solaris 10-04-2012
4,596
Posted By velava
based on the month present in the file time stamp...
based on the month present in the file time stamp i have to move its respective folders.

it is not working as expected and it is moving all other month files as well.

Thanks
Forum: Solaris 10-04-2012
4,596
Posted By velava
filenames will be, -rw-rw-r-- 1 b2binta1...
filenames will be,

-rw-rw-r-- 1 b2binta1 b2badmin 16515066 Sep 18 00:57 test1.txt
-rw-rw-r-- 1 b2binta1 b2badmin 22824 Sep 18 01:30 test2.txt
-rw-rw-r-- 1 b2binta1 b2badmin 41844...
Forum: Solaris 10-04-2012
4,596
Posted By velava
Yes, the fiename having the timestamp.
Yes, the fiename having the timestamp.
Forum: Solaris 10-04-2012
4,596
Posted By velava
Move files into different folders based on its month
Hi All,

I want to move the files in to different folders based on the files month in the file timestamp.

For example

All the september files in the directory should moves into the folder...
5,232
Posted By velava
It is not listing all the files which has the...
It is not listing all the files which has the modified date as yesterday. Actually the server resides machine has the PST timings. So if i run this command now i am not getting all the files which...
5,232
Posted By velava
Thanks for your reply! It is not working as...
Thanks for your reply!

It is not working as expected and getting error.

Could you please provide the comand clearly?

I need to look the folder \devctr\srcfiles and listed down the files....
5,232
Posted By velava
How to get the files which has modified date as yesterday and before?
Hi All,

Can you please help me to get only the files which has the modified date as yesterday and before?

Thanks in advance!

Regards,
Velava.S
5,903
Posted By velava
I could not get this.. Please give me the...
I could not get this.. Please give me the solution to achive the above problem statement.
5,903
Posted By velava
Converting .xls into .csv and find & Replace
Hi All,
Please give me the solution to the following ASAP.

1) Converting the .xls into .csv
Script i tried,
mv hello.xls hello.csv
The above given script converting the .xls file into .csv...
Showing results 1 to 21 of 21

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