Search Results

Search: Posts Made By: sanvel
Forum: Linux 03-19-2014
12,286
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
53,792
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
53,792
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
6,083
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
6,083
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
.
.
.
.
72,496
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,391
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 08:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy