Search Results

Search: Posts Made By: bharathappriyan
2,048
Posted By bharathappriyan
Hi, There can be more columns in the input...
Hi,

There can be more columns in the input file. It seems you have written the code for the current data only.
2,048
Posted By bharathappriyan
Could you please explain how it works? ...
Could you please explain how it works?

Thanks
bharathappriyan
2,048
Posted By bharathappriyan
Replace the | with Comma
Hi,

The input file structure is given below: The Col1 and Col2 will be there always. But from Col3 there can be more columns.
And Col3 will be always Col4 and Col5 will always be with Col6. I...
10,876
Posted By bharathappriyan
Hi, Thanks a lot for your code. Let me try...
Hi,

Thanks a lot for your code. Let me try and see.

Thanks,
bharathappriyan
10,876
Posted By bharathappriyan
No. I need to check the current date is between...
No. I need to check the current date is between the start date or not. If i run the command with 1 week ago, the start date will be Tue Nov 2 06:00:00 EDT 2010
but End date will be Wed Oct 27...
10,876
Posted By bharathappriyan
If i run the process on Tuesday, it will take...
If i run the process on Tuesday, it will take previous week date instead of current Tues day. I need to get current week date.

Thanks.
10,876
Posted By bharathappriyan
Comparing current date
Hi,

I have start date and end date in the following format. I need to check the current date is greater than the start date and less than the end date. if i use the command date --date "Tue 6:00...
1,365
Posted By bharathappriyan
Hi, Thanks a lot. Selva
Hi,

Thanks a lot.

Selva
1,365
Posted By bharathappriyan
Listing the files
Hi,

I have to list the files in a particular folder which are having file names like below:
1000_aa.csv, 1000_ab.csv, 1000_az.csv,1000_ba.csv,1000_bb.csv,1000_ca.csv,1000_cb.csv.

How can i get...
2,738
Posted By bharathappriyan
Hi, It is working as expected. I really...
Hi,

It is working as expected. I really thank you.

Thanks,
Selva
2,738
Posted By bharathappriyan
Hi, Thanks for your reply. but it is not...
Hi,

Thanks for your reply. but it is not working if my input data is like below. And could you please explain the code?

MARKET,STORE,STORENAME1,NH,

Thanks,
Selva
2,738
Posted By bharathappriyan
How to replace the blank in unix
Hi,

I have data like below: The columns MARKET ,STORE, WEEK1 will be present always. After that, there can be week2, week3 columns or some times there wont be no columns after week1. The week1 or...
2,064
Posted By bharathappriyan
Thanks Guru. but i am getting the following...
Thanks Guru. but i am getting the following error.

eval: line 1: syntax error near unexpected token `('
2,064
Posted By bharathappriyan
Open the file and replace the variable with actual value
Hi,

i have a sql file named sample.sql. The query is given below.
select count(*) from $TABLE_NAME

In the main script, i am sourcing this sql. I need to replace the $TABLE_NAME with actual...
3,535
Posted By bharathappriyan
Excellent vgersh99. I really appreciate your...
Excellent vgersh99. I really appreciate your help.

Thanks a lot.
Selva
3,535
Posted By bharathappriyan
Thanks for your reply. The code is working for...
Thanks for your reply. The code is working for a|b|c. But it is not working for 1 W/E 01/06/07|1 W/E 01/05/08

Thanks

---------- Post updated at 03:12 PM ---------- Previous update was at 03:08...
3,535
Posted By bharathappriyan
Copy the data column to adjacent column
Hi,

i have file which contains only one record like below

a|b|c|....

The no of columns is not known. The expected output is as below:
a|a|b|b|c|c|...

Please provide me your suggestions....
Forum: Linux 10-30-2009
5,878
Posted By bharathappriyan
How to replace the 2nd character in a string using sed?
Hi,
i have string var1=NN. Based on conditions, i have to change this first N to Y or second N to Y and send the details to other process. How to do that? This is a linux machine.

Thanks,
Selva
Showing results 1 to 18 of 18

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