Search Results

Search: Posts Made By: sanvel
Forum: Linux 03-19-2014
10,595
Posted By sanvel
To get all the columns in a CSV file based on unique values of particular column
cat sample.csv

ID,Name,no
1,AAA,1
2,BBB,1
3,AAA,1
4,BBB,1
cut -d',' -f2 sample.csv | sort | uniq

this gives only the 2nd column values

Name
AAA
BBB
How to I get all the columns...
Forum: Linux 02-26-2014
49,873
Posted By sanvel
tried with the below: #!/bin/ksh ssh -l...
tried with the below:
#!/bin/ksh
ssh -l username@hostname << EOT
cd /tmp
touch testfile
EOT


i dont want to move mn script to remote machine.

shows as
=====================...
Forum: Linux 02-20-2014
49,873
Posted By sanvel
Executing a script in remote machine through ssh
How to execute a script in remote machine through ssh
I have a script test.sh which does some backup activity in remote machine. Wanted to keep backup also in remote machine.
ssh -l username...
Forum: Linux 01-31-2014
4,969
Posted By sanvel
i wnat to store the count value from a query to a...
i wnat to store the count value from a query to a variable and then store the result in a file:

inside my result file my output should be:

variable1=result of query1(it will be a number)...
Forum: Linux 01-31-2014
4,969
Posted By sanvel
How to store count of multiple queries in variables in a shell script?
how to store the count of queries in variables inside a filein shell script

my output :

filename
-------
variable1=result from 1st query
variable2=result from 2nd query
.
.
.
.
71,770
Posted By sanvel
Encrypted password in script
How to keep encrypted password in a shell script.?

I have the file which has the following:

a.sh
-----
username=abc
password=abc

I will be using this username and password in...
1,320
Posted By sanvel
wc question
I am new to unix. how to get only the no. of lines output from the wc -l command.
Input:
wc -l filename
it gives
<no.of lines> filename
i need only the interger value.
as
<no.of lines>
...
Showing results 1 to 7 of 7

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