Search Results

Search: Posts Made By: hegdeshashi
Forum: What is on Your Mind? 02-19-2013
10,945
Posted By hegdeshashi
I am from Bangalore
I am from Bangalore
9,240
Posted By hegdeshashi
Hi, that's working fine..thanks...
Hi,

that's working fine..thanks rakeshawasthi..

Now,I am writing a script that login into remote system ( using sftp), then ,I am transferring some files from local machine to remote system,
...
9,240
Posted By hegdeshashi
Hi, I am using Kshell script. Using...
Hi,

I am using Kshell script.

Using script, is it not possible to call system command ?

example: system( "ls -ltr" )
9,240
Posted By hegdeshashi
shell script
shell script
9,240
Posted By hegdeshashi
In a script , I wrote system( "ls -ltr" ) ...
In a script , I wrote
system( "ls -ltr" )

which is giving me the error..
Once I run the script , it has to display all files..
9,240
Posted By hegdeshashi
system call
Hi,

How to write a system calls in a script ?

> cd $HOME
> ls -ltr

thanks in advance..
8,174
Posted By hegdeshashi
thanks to all, it was working... Now ,...
thanks to all,

it was working...

Now , the problem is==> with scp command I want to transfer the file in ascii mode.

I got to know that,, scp -a is not working..

I tried with ----- ...
8,174
Posted By hegdeshashi
without password to login into remote machine- in the script ??
HI,

I need to write a script ..

when I run this script , will directly goto that remote machine without asking password..

Once it is entered, I needs to transfer some of the log files...

...
3,812
Posted By hegdeshashi
okay,thanks,, I need to transfer some of the...
okay,thanks,,

I need to transfer some of the log files from one host to another, while transfering it should not ask any password,so is it possible to do ?/ ?

thanks in advance..
3,812
Posted By hegdeshashi
how it works ? sftp
Hi,

I am curious about this script , how it is running ..?

#!/bin/sh
echo "OK, starting now..."
ftp remotehost <<EOF

When I run , it is asking
OK, starting now...
Password:Name...
3,284
Posted By hegdeshashi
sort by column or specific order
Hi,

I need to sort it by column or need it in a specific order...

input is
=====
uid=shashi country= india region =0 ph=0
uid= jon region= asia ph= 12345 country=0
uid = man country=...
1,293
Posted By hegdeshashi
arranging datas if input file is not having also...!!
hi,

my input file is containg uid, eriMaster ,eriResign, ericontry, dept.
some of the uid are not having all info.

out put should include all info irrespctive of datas of input file
if any...
3,056
Posted By hegdeshashi
Hi, instead of counting 4 numbers from the...
Hi,

instead of counting 4 numbers from the search, is it possible to print line by line as an user ?


codeis====
user=`echo $record | awk -F, '{print $1}'`


ldapsearch -h ldap uid="$user"...
2,451
Posted By hegdeshashi
as per my requirment , is it possible to do using...
as per my requirment , is it possible to do using awk/sed ?
or any other solution ?
2,451
Posted By hegdeshashi
awk -- sort out the out put file
Hi,

using awk /sed, I need to sort out the input file.

here is the example
input file===

Name= shashi | country= india | region = asia | dept= ww
Name= jon | region = asia | dept= xx...
3,056
Posted By hegdeshashi
Thanks shubhendu..!! it worked fine...
Thanks shubhendu..!!


it worked fine...
4,693
Posted By hegdeshashi
AWK...find a string ,if so print it
Hi,

I need to find a string, if it finds then I need to print it , otherwise it has to goto next line....

input is====>

uid = shashi, india uid ,uid= asia
uid= none, uid=india. none...
3,817
Posted By hegdeshashi
Hi here is my program.. ========= ...
Hi

here is my program..

=========

for record in `cat eamcs.txt`
do

user=`echo $record | awk -F, '{print $1}'`

ldapsearch -h ldap uid="$user" uid ou eriMasterDomain eriCountry | \...
2,406
Posted By hegdeshashi
sorry for that.. here is the input=> ...
sorry for that..

here is the input=>
uid=ERTCHWE | eriMasterDomain=EAPAC | eriCountry=Taiwan, | ou=ERT
uid=ERTSYWU | eriCountry=Taiwan, | ou=ERT | uid=ERTKESU | eriMasterDomain=EAPAC
|...
2,406
Posted By hegdeshashi
Hi, both commands given the not correct...
Hi,

both commands given the not correct answer...


uid=ERTCHWE | eriMasterDomain=EAPAC | eriCountry=Taiwan, | ou=ERT
uid=ERTSYWU | eriCountry=Taiwan, | ou=ERT | uid=ERTKESU |...
3,056
Posted By hegdeshashi
how to replace a text with a newline
Hi.

How to replace a text in a file with starting from a newline

example====

shashi how r u ? shashi , r u their? shashi....
shashi hello shashi

output will be
shashi how r u ?
shashi...
5,015
Posted By hegdeshashi
Hi, sed s'/ | uid/^Muid/' file > newfile ...
Hi,

sed s'/ | uid/^Muid/' file > newfile ===> is not giving the output as my requirment..

If the input file contains "uid" then "uid" will start from a new line every time..

any other...
2,406
Posted By hegdeshashi
how to write next line program
Hi,

I am having an input file which contains a group of words,if one specific word comes which goes to next line.
example:
input file===>

shashi country= india comapny= none shashi shashi...
5,015
Posted By hegdeshashi
is it possible to use sed??
is it possible to use sed??
5,015
Posted By hegdeshashi
replace string with a newline string
Hi,

I wanted to replace these lines in vi editor:

input--


uid=ESVPEME | eriMasterDomain=EAMCS | eriCountry=El | ou=ESV
uid=EPYCAR | eriMasterDomain=EAMCS | eriCountry=Argentina | ou=CEA...
Showing results 1 to 25 of 29

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