Search Results

Search: Posts Made By: RaghavendraT
1,737
Posted By RaghavendraT
HI Akshay, I have tried the code smaple...
HI Akshay,

I have tried the code smaple provided by you. I am getting error mktime function not defined, but in my unix box mktime is there. I guess to use mk time i should write any code like...
1,737
Posted By RaghavendraT
datecalc is not installed so can u suggest me any...
datecalc is not installed so can u suggest me any alternative
1,737
Posted By RaghavendraT
Help me in the Execution of Date comparsion
Hi ,

Please look into the query

1)Date format: mm/dd/yyyy  example (10/22/2013)
2) compare this date  with the System date 
3) if the difference of dates less than 30 days. Then return...
1,708
Posted By RaghavendraT
Script to store the csv files into a particular folder
I want to write a unix shellScript should store the csv files. into a paticular folder
5,790
Posted By RaghavendraT
find...
find /usr/IBM/FileNet/BulkUploaderScript/$i/Log/SuccessLog \
\( -newer range_start -a \! -newer range_end \) \
| while read file
do

lines=`wc -l "$file"`
ls -l "$file" | read v w...
5,790
Posted By RaghavendraT
Still facing Issue that d1 ,d2,d3 not printing ...
Still facing Issue that d1 ,d2,d3 not printing
Output::
5,790
Posted By RaghavendraT
find...
find /usr/IBM/FileNet/BulkUploaderScript/$i/Log/SuccessLog \
\( -newer range_start -a \! -newer range_end \) \
| while read file
do

lines=`wc -l "$file"`
# details=`ls -l "$file" |...
5,790
Posted By RaghavendraT
find...
find /usr/IBM/FileNet/BulkUploaderScript/$i/Log/SuccessLog \
\( -newer range_start -a \! -newer range_end \) \
| while read file
do

lines=`wc -l "$file"`-----
---->i need number of...
5,790
Posted By RaghavendraT
ls-l is not working , i mean it is not showing ...
ls-l is not working , i mean it is not showing any output . please go through the above code in previous posts , if we do a minor change code will work . Please look into it and help
5,790
Posted By RaghavendraT
I am not able to see any output for that ...
I am not able to see any output for that paticular ls-l
5,790
Posted By RaghavendraT
find...
find /usr/IBM/FileNet/BulkUploaderScript/$i/Log/SuccessLog \
\( -newer range_start -a \! -newer range_end \) \
| while read file
do
lines=`wc -l "$file"`---->i need number of lines in...
5,790
Posted By RaghavendraT
Output of ls -1 : File...
Output of ls -1 :


File /usr/IBM/FileNet/BulkUploaderScript/LogsFolder/Log/SuccessLog/CSVSuccessLogHIPAACERTS7-6-2013 15-32-18.csv has 4 ...
5,790
Posted By RaghavendraT
Hi, do lines=`wc -l "$file"` ls...
Hi,

do
lines=`wc -l "$file"`
ls -l "$file" | read w x y z d1 d2 d3 rest
echo "File $file has $lines lines and a date of $d1 $d2 $d3"
done


OUTPUT:

File...
5,790
Posted By RaghavendraT
Hi Robin, Code remains same as we...
Hi Robin,

Code remains same as we disscussed i.e

find /usr/IBM/FileNet/BulkUploaderScript/$i/Log/SuccessLog \
\( -newer range_start -a \! -newer range_end \) \
| while read file
do
...
5,790
Posted By RaghavendraT
Hi, This is the ouput after execuition ...
Hi,
This is the ouput after execuition
{File /usr/IBM/FileNet/BulkUploaderScript/LogsFolder/Log/SuccessLog/CSVSuccessLogHIPAACERTS7-6-2013 15-32-18.csv has 4...
5,790
Posted By RaghavendraT
Thanks alot now it is able to read the file with...
Thanks alot now it is able to read the file with spaces.But { ls -l "$file" | read w x y z d1 d2 d3 rest } this is not working i mean it is not printing the date and time stamp of file .
5,790
Posted By RaghavendraT
Thanks for the code, but i am still facing wc:...
Thanks for the code, but i am still facing
wc: cannot open /usr/IBM/FileNet/BulkUploaderScript/LogsFolder/Log/SuccessLog/CSVSuccessLogHIPAACERTS7-6-2013
wc: cannot open 15-32-18.csv

This the ...
5,790
Posted By RaghavendraT
Hi , I am getting an error like this wc:...
Hi ,
I am getting an error like this
wc: cannot open /usr/IBM/FileNet/BulkUploaderScript/LogsFolder/Log/SuccessLog/CSVSuccessLogHIPAACERTS7-6-2013
wc: cannot open 15-32-18.csv...
5,790
Posted By RaghavendraT
Hi , I need number of lines in the file and...
Hi ,

I need number of lines in the file and time stamp of the file .
Example: I will pass start date(20130607) and end date(20130608) and i am hard coding time in my code as it is fixed in my...
5,790
Posted By RaghavendraT
Help me with daily monitoring script
find /usr/IBM/FileNet/BulkUploaderScript/$i/Log/SuccessLog \( -newer range_start -a \! -newer range_end \)
-exec wc -l {} \; |awk '{total+=$1-1} END {print total}' >>$LOGFILE


I need to print...
Showing results 1 to 20 of 20

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