Search Results

Search: Posts Made By: Sanjeev Yadav
2,336
Posted By Sanjeev Yadav
I tried running the below script but it doesn't...
I tried running the below script but it doesn't work for me....can you fix this for me....Sorry, I am new to unix..

exec 5< "/home/epprod/COSMOS_CUSTOME_CLIENTID.txt"
exec 6<...
2,336
Posted By Sanjeev Yadav
How to take input from two files in a UNIX script?
I have a simple script which returns me the response from a table.
while read -r xx
do
db2 -x "select * from Table where user ='$xx' with ur " >> "/home/Results.txt"
done < "/home/USERS.txt"

...
21,985
Posted By Sanjeev Yadav
thats pretty logical...I didn't knw paste would...
thats pretty logical...I didn't knw paste would make it so easy.....Thanks !!
21,985
Posted By Sanjeev Yadav
didn't get an idea how to copy columns to a...
didn't get an idea how to copy columns to a file..?
21,985
Posted By Sanjeev Yadav
Add new column from another file in existing file
I have two files which has one column comman in them.

The two files has exact same number of rows in the same sequence.

I want to add the second column of Users_detail_servicesonly.txt as...
2,415
Posted By Sanjeev Yadav
Get user id count for a range
I have a file which has users having different values against them in second column.

I want to set a range and get the count of users in that range.

Suppose :-

a 4
b 19
c 27...
867
Posted By Sanjeev Yadav
Get number of occurances in a file
I want to get the count of occurance of a user in a file.

abc
abc
bcd
bcd
bcd
xyz


The result should be like

abc 2
bcd 3
xyz 1
1,720
Posted By Sanjeev Yadav
My condition is that...the coulmn2 should have 2...
My condition is that...the coulmn2 should have 2 distinct values atleast....

It could be anything as below...
1,2
2,3
1,3
1,2,3
2,3,1
1,720
Posted By Sanjeev Yadav
I need to do that operation on a file.....Just...
I need to do that operation on a file.....Just thinking of any unix command ??
1,720
Posted By Sanjeev Yadav
Select record having different value in second column
I want records which have more than one and different value in the second column on the below sample file.
Ex, I have the samle file below :-
XYZ 1
XYZ 3
abc 1
abc 1
qwe 2
qwe 1
qwe 3

I...
6,837
Posted By Sanjeev Yadav
Thanks ! It worked.
Thanks ! It worked.
6,837
Posted By Sanjeev Yadav
Unix command to select first few characters and last character of a line
I have a huge file and I want to select first 10 charcters and last 2 characters of everyline and than will filter the unique line.

I know, it must be easy bt I am new to unix scripting:)

Ex. ...
1,605
Posted By Sanjeev Yadav
Editing the first line of file
I have a sample file as below :-


RECORD_COUNT|2660|28606946.86|20110701122349694|
adkad|wwsgesg|mkmk|FFFF|FAFAF|FFAF|FAFFFFA|5894858|


I have to replace the second coulmn in the first row...
Showing results 1 to 13 of 13

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