Search Results

Search: Posts Made By: mohan705
2,766
Posted By mohan705
Sorry for not giving in details , ...
Sorry for not giving in details ,

BASE_PATH=/home/tmp
FILENAME=summary.txt==>3 files
These are exist in current location and wait for 3rd file to arrive

PASSIVELBS_xxx_1
PASSIVELBS_xxx_2...
2,766
Posted By mohan705
Hi , Below code is working fine,exit from loop...
Hi ,
Below code is working fine,exit from loop if not matching .I need to be loop forever untill match both files count .Any help would be appereciated


summary=`cat ${BASE_PATH}/${FILENAME|wc...
2,766
Posted By mohan705
Thanks jim,its working perfect.I need one more...
Thanks jim,its working perfect.I need one more conditions to check
Let say summary.txt having 3 files but when checking only 2 files are available in that location ,ensure that 3 files should be ...
2,766
Posted By mohan705
Hi want to check ,grep and sed cannot use...
Hi
want to check ,grep and sed cannot use single like ,i want to find **** lines in file,if exist only remove those lines .When i am doing the below check throwing error

CHECK_FILE=`egrep -i...
2,766
Posted By mohan705
Polling file
HI
I need some help on this below one
Have summuary file coming on daily basis with list of file names and count ,if the summuary file not exist ,pool it for every 5 mins till it arrives .Once...
1,606
Posted By mohan705
Pivoting using shell scripts
Hi ,
Please any one help using shell scripts achieve the below output(pivoting on top_cd i mean type code values will come as individual columns and fixed amount is value for that .Any help would be...
721
Posted By mohan705
Script help
Hi
I have data stored under the timestamp folder with subfolders ,i am planning write script to automate take the timestamp and process all the subfolders after completion ,then go to another time...
1,234
Posted By mohan705
Thannks :b:
Thannks :b:
1,234
Posted By mohan705
For loop exiting
Hi ,
I am processing some files using below shell script the problem for loop exit after processing some files even though it exist.After modifying file.txt and rerunning the script and its running...
4,139
Posted By mohan705
Yes Don,it produces the same out put and script...
Yes Don,it produces the same out put and script ran fast compare to the previous .

:b:Thanks
4,139
Posted By mohan705
Hi Don, Thanks for your advise ,Btw changed the...
Hi Don,
Thanks for your advise ,Btw changed the code as you suggested ,Apologies for not publishing in the post .This below code working fine .I will check your script



chk="$DATE2 20:30"
...
4,139
Posted By mohan705
Hi Don, It woking fine Thanks, Mohan:b:...
Hi Don,
It woking fine

Thanks,
Mohan:b:

---------- Post updated at 04:01 AM ---------- Previous update was at 02:57 AM ----------

Hi Don,
Your script is working fine ,i am getting the...
4,139
Posted By mohan705
Hi Don When passing parameter as Date its...
Hi Don

When passing parameter as Date its not working intact it displaying every thing ,but when hard coding the values its working .Please advise



DATE2=`date --date='1 day ago' +%Y-%m-%d`...
4,139
Posted By mohan705
Hi Aia, The files list getting in S3 AWS ...
Hi Aia,
The files list getting in S3 AWS

Thanks,
Mohan

---------- Post updated at 03:43 AM ---------- Previous update was at 03:42 AM ----------

Thanks don ,its working:b:
4,139
Posted By mohan705
Extract based on timestamp
Hi,
I want take the files whose timestamp greater than "2015-12-23 22:30" using awk .Please advise

os version :Linux ip-172-31-19-240 4.1.10-17.31.amzn1.x86_64 #1 SMP Sat Oct 24 01:31:37 UTC...
4,617
Posted By mohan705
Thanks :b:
Thanks :b:
4,617
Posted By mohan705
Hi, I am trying for yesterday unixtimestmp ,it...
Hi,
I am trying for yesterday unixtimestmp ,it still showing "1450396800000" instead of "
1450310400".Please advise

[hadoop@ip-172-31-10-25 ~]$ date --date='1 day ago'
Thu Dec 17 10:30:51 UTC...
4,617
Posted By mohan705
Thanks guys ,#post 10 and 11 also working in...
Thanks guys ,#post 10 and 11 also working in linux :b:
4,617
Posted By mohan705
Hi , In S3 bucket files going to store as unix...
Hi ,
In S3 bucket files going to store as unix time stamp as folder in daily bases ,i want to automate from shell script .My script need to take the today date convert into unix time stamp and...
4,617
Posted By mohan705
Its not possible through linux
Its not possible through linux
4,617
Posted By mohan705
Not able to print variable
Hi
I am not able to print value in mac ,Can you please help
Based on the below command ,i need to print the value and that value assign to next one

folder=`date -uj +%s000 $(date -u...
4,617
Posted By mohan705
Hi , I am try the below command on linux os ,it...
Hi ,
I am try the below command on linux os ,it throwing error but when using same thing in mac os it working ,please advise

Linux ip-172-31-28-233 4.1.10-17.31.amzn1.x86_64 #1 SMP Sat Oct 24...
1,276
Posted By mohan705
Adding new column in the middle
Hi ,
I need to add few new columns in existing file .Any help would be great

ex:
existing file
name,typ,add,dept

New file(com1,sal are new)
name,com1,type,sal,add,dept


Thanks,
mohan
16,798
Posted By mohan705
Sed: couldn't write 1378 items to stdout: No space left on device
Hi ,
In file first line start with "[ and end of line with "]",when trying to remove using sed i am getting the below error .Please advise


sed -e 's/[ˆ[]//g' -e 's/[]$]//g' segment1.txt...
4,617
Posted By mohan705
Thanks a lot ,its perfectly working .Thanks again...
Thanks a lot ,its perfectly working .Thanks again
Dear user,

It is appreciated if you use the "thumb up/thanks" button at the bottom right corner for posts that you find useful.

Kind regards,...
Showing results 1 to 25 of 190

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