Search Results

Search: Posts Made By: arushunter
2
Ssh
1,450
Posted By arushunter
Just answered it here ...
Just answered it here
https://www.unix.com/shell-programming-and-scripting-q-and-a/39990-ssh.html#post302126646
3
Ssh
2,477
Posted By arushunter
actually this can be done by setting up ssh key...
actually this can be done by setting up ssh key on each server.
1. you need an ssh key on each server
* Look in $HOME/.ssh for a file pair named is_rsa and id_rsa.pub. If they exist skip to the...
3,245
Posted By arushunter
It works! thanks a lot
It works! thanks a lot
3,245
Posted By arushunter
well, it just removes ":!:" and makes it ...
well, it just removes ":!:" and makes it
kljlkfljf5kjljljlj6jhjkhjkh7
3,245
Posted By arushunter
echo 'kljlkfljf5:!:kjljljlj6:!:jhjkhjkh7' | sed...
echo 'kljlkfljf5:!:kjljljlj6:!:jhjkhjkh7' | sed 's/\:!\:/\/g'

isn't working for me.
getting usual
sed: command garbled: s/\:!\:/\/g

Am I missing something?
3,245
Posted By arushunter
help with sed needed
Hi,
I have a file in a form of

jkkhjjk1:!:jkhdjkhjkh2:!:kljkljkljklj3:!:kljsdj4
kljlkfljf5:!:kjljljlj6:!:jhjkhjkh7

I am trying to use sed command such that everytime it find ":!:" it will...
1,530
Posted By arushunter
sed -e...
sed -e "s/rs\.getString(\([^)][^)]*\))/PString\.trim(rs\.getString(\1))/g" filename

Thank you,
It worked
1,530
Posted By arushunter
help with sed
Hi,
I have a script that reads files in directory one by one.
I need this script to change
all occurances of
rs.getString(any_value) to PString.trim(rs.getString(any_value))

I am trying to...
45,364
Posted By arushunter
thank you. it worked
thank you. it worked
45,364
Posted By arushunter
how to check if file is zipped
I have a script that grabs files from directory , zips and moves them somewhere else. It works fine except the case when files it grabs are already zipped. Then it trys to zip it again which does not...
15,108
Posted By arushunter
Found it, Actually it should be this way ...
Found it,
Actually it should be this way

...
open(MYFILE, "gzcat $filename |");
...
15,108
Posted By arushunter
reading gz files
Hi,
I have a simple perl script where I am passing array of gziped files to the while loop and trying to read content of each field one line at the time using gzcat. Yet, I can not get it to work...
1,818
Posted By arushunter
Thank you for the reply. I was able to make to...
Thank you for the reply.
I was able to make to work, though I had to use two commands to do so.
I will look into your suggestion
2,729
Posted By arushunter
Yes, the problem was the quotes. I figured out...
Yes, the problem was the quotes. I figured out the syntax. Thank you for the reply
1,818
Posted By arushunter
sed question
I have a file that conatins following info

Policy1=U|guestRoom=test1idCode=5(1):!:Amenity2=U|RoomId=testrma=4(1):!:|
GuestRoomAmenity1=U|guestRoomId=testguest1id^rmaCode=5(1):!:|

I need it to...
2,729
Posted By arushunter
help needed with getting last inserted row id
Hi,
I am working on a script that inserts one row of data at the time to a table.
Among the fields of that table is the “serial” which is the auto increment. I need to be able to retrieve last...
5,032
Posted By arushunter
Thank you, Hm, Is there any other way to do it...
Thank you,
Hm, Is there any other way to do it without changing the shell?
5,032
Posted By arushunter
thank you again. I did remove "cat" and my...
thank you again. I did remove "cat"
and my while loop look as

while read file_line
do
ARGUM=$file_line' '$ARGUM
done < ./temp

echo $ARGUM

Yet, I am still getting emty output.
echo...
5,032
Posted By arushunter
Thank you for the reply. I tried, but now am...
Thank you for the reply.
I tried, but now am getting

syntax error: `./temp' unexpected
5,032
Posted By arushunter
what is wrong here
Hello,
I have a simple script such as

-----------------------------
#! /bin/sh


YEAR=`date -u +%Y`;
MONTH=`date -u +%m`;
DAY=`date -u +%d`;
DATE=$MONTH$DAY$YEAR
LOGFILES=auditTrail-$DATE...
2,793
Posted By arushunter
It is working. Thank you very much
It is working. Thank you very much
2,793
Posted By arushunter
that will not work as it will replace all...
that will not work as it will replace all occurances of '|', but only first occurence of '|' needs to be replaced
2,793
Posted By arushunter
Being on the same topic I have another question. ...
Being on the same topic I have another question.
If I have files that contains following data

key1^A|shift1|376
key2^B|shift
key3^C|shift23|2|5

and so on

how would I change first instance...
2,793
Posted By arushunter
thank you it worked.
thank you it worked.
2,793
Posted By arushunter
regex question
I have a simple file test.out that contains data in the form of

key1=A|shift1
key2=B|shift2
key3=C|shift3

and so on.

I need to get it to print

A
B
C

I can do it using lookbehind...
Showing results 1 to 25 of 31

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