Search Results

Search: Posts Made By: Ganesh L
1,891
Posted By Ganesh L
Delete the records in file based on lookup file.
Hi
I have two files one.txt and two.txt
one.txt
123
324
456
235
456

two txt
abc one 000 123 abc
abc one 000 456 abc
abc one 000 122 abc
abc one 000 111 abc

My question here is, the...
3,450
Posted By Ganesh L
scp without password for destination server
I am using the below command to scp the file to destination server ($server).
The ssh keys have been created between the source and destination servers. Still I am getting password authentication...
1,906
Posted By Ganesh L
Very nice. i can able to do. it is working fine....
Very nice. i can able to do. it is working fine. Thanks a lot....
1,906
Posted By Ganesh L
Hi , Iam getting below error. can you...
Hi ,

Iam getting below error. can you please on this.
awk: syntax error near line 1
awk: bailing out near line 1

Thanks
ganesh.
1,906
Posted By Ganesh L
Thanks for you reply I have tried modifying...
Thanks for you reply

I have tried modifying as below. Iam getting error. is that correct??

<filename>'|awk '/001/{s=1;print;next}s{r=$0;s=0;t=1;print;next}!/006/&&!t{print r}{t=0;print}' >...
1,906
Posted By Ganesh L
Creating repeating record in between file through script
apprecieate your help to resove this.

My source file looke like

1001 000 HEADER
1001 001 RAJESH
1001 002 100
1001 002 200
1001 002 500
1001 006 FOOTER
1002 000 HEADER ...
10,807
Posted By Ganesh L
Thanks. it is working fine.
Thanks. it is working fine.
10,807
Posted By Ganesh L
Unzip the .zip file without using unzip utility in UNIX
I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix.

Please help me resolve this issue

Thanks
ganesh.
10,893
Posted By Ganesh L
find . -mtime +30 | zip name -@ - Here Files...
find . -mtime +30 | zip name -@ -
Here Files get zipped from sub folders as well. I wanted to zip only from current dir files. - maxdepth +1 option not working for me.

can someone help me on...
10,893
Posted By Ganesh L
Got a error saying -maxdepth is invalid option,...
Got a error saying -maxdepth is invalid option, thanks

---------- Post updated 07-24-13 at 01:36 AM ---------- Previous update was 07-23-13 at 09:36 AM ----------

The above provided solution is...
10,893
Posted By Ganesh L
Thanks for your reply Problem facing here...
Thanks for your reply

Problem facing here is that it is pulling the list of files from sub folder as well.
10,893
Posted By Ganesh L
Compressing old files as zip file through script
I have below files in foler one/archive>

one. txt 6/21/2013
two txt 7/23/2013
three.txt 6/20/2013

I wanted to move all the old files (>30 days) compressing single .zip file into...
1,291
Posted By Ganesh L
How to remove ^M character in file in UNIX?
I have file with controlM (^M) character. i just wanted to run the script after removing the same through script.

Thanks in Advance
Ganesh.
6,938
Posted By Ganesh L
Checking ^M character in file
i have the file <infile> with ^M charactrer. i just wnt to know through script whether the file have ^M character or not.

Please let me know the script steps to check the same.

Thanks in...
4,112
Posted By Ganesh L
Thanks for the solution... I will try this code...
Thanks for the solution... I will try this code and let u know the status
2,361
Posted By Ganesh L
Pick the column value including comma from csv file using awk
Source 1
column1 column2 column 3 column4
1,ganesh,1,000,1
222,ram,2,000,5
222,ram,50,000,5
33,raju,5,000,7
33,raju,5,000,7
33,raju,5,000,8
33,raju,5,000,4
33,raju,5,000,1


In my .csv...
4,112
Posted By Ganesh L
Pick the column value based on another column from .csv file
My scenario is that I need to pick value from third column based on fourth column value, if fourth column value is 1 then first value of third column.Third column (2|3|4|6|1) values are cancatenated....
817
Posted By Ganesh L
Thanks a lot for your quick reply and It is...
Thanks a lot for your quick reply and It is working fine :).
817
Posted By Ganesh L
Counting no of spl character occurance column wise
Hi i have a file delimited with ","as below and i need to handle scenario like col1,col2 fields have special character '|', i need count of special character value column wise as given in col3 and...
2,403
Posted By Ganesh L
Thanks for your quick reply.. i will check let u...
Thanks for your quick reply.. i will check let u knwo if any issues

---------- Post updated at 02:06 AM ---------- Previous update was at 01:55 AM ----------

Awesome it is working fine...Thanks...
2,403
Posted By Ganesh L
Pick the column value based on another column using awk or CUT
My scenario is that I need to pick value from third column based on fourth column value, if fourth column value is 1 then first value of third column.Third column (2|3|4|6|1) values are cancatenated....
Showing results 1 to 21 of 21

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