Search Results

Search: Posts Made By: rammm
59,805
Posted By rammm
c:\Users\Desktop\putty.exe -ssh -pw password...
c:\Users\Desktop\putty.exe -ssh -pw password user@server ./script.sh

when i execute the above command it is giving error as

Network error : cannot assign requested address.

but the code,
...
59,805
Posted By rammm
To run a shell script in remote server from windows batch file
Hi all,
i need to run a shell script on remote server. I have created file .bat file in windows server with following code,


c:\Users\Desktop\putty.exe -ssh -pw password user@server...
2,601
Posted By rammm
@ methyl : I am using unix OS. The following are...
@ methyl : I am using unix OS. The following are the version details,
Machine hardware: sun4u
OS version: 5.10
Processor type: sparc
Hardware: SUNW,Sun-Fire-15000
...
2,601
Posted By rammm
Login into another user from user inside script
now i have logged in username : ramesh in unix
Now i have to created script file to login into another user and have run a command inside that user and after executing the command i have to exit...
1,261
Posted By rammm
we are using bash and Kshell. Some times i m...
we are using bash and Kshell. Some times i m getting the correct output, but sometimes it waits for press 3 times enter and also didt get ouput
1,261
Posted By rammm
+ echo Enter the Value : Enter the Value : +...
+ echo Enter the Value :
Enter the Value :
+ read value
3135


+ sed 1s:\(.\{6\}\)\(.\{4\}\):\1: flextran20120900-completed.txt
+ 1> temp.txt
+ mv temp.txt flextran20120900-completed.txt
...
1,261
Posted By rammm
Problem in reading the input value
echo "Enter the Value : "
read value
sed '1s:\(.\{6\}\)\(.\{4\}\):\1'$value':' flextran$RUN_DATE-completed.txt > temp.txt
mv temp.txt flextran$RUN_DATE-completed.txt

on the run time after...
3,823
Posted By rammm
Hi guys any codes for the following question...in...
Hi guys any codes for the following question...in order to replace the line in file.
3,823
Posted By rammm
Find and replace the line in text file
I have two files
a.txt
b.txt
I want to find a line in a.txt and replace by another line from b.txt

a.txt
asfsdfsfsfdfsf
asfwererfgdgf
wrerwetretfdg


b.txt
werdfgdfgf
werergfdgd...
6,965
Posted By rammm
sed "1s:\(.\{4\}\)\(.\{3\}\):\1$value:" -i 1.txt ...
sed "1s:\(.\{4\}\)\(.\{3\}\):\1$value:" -i 1.txt

The exact command is not working.

but without -i its working as
sed "1s:\(.\{4\}\)\(.\{3\}\):\1$value:" 1.txt

Thanks

If i want to the...
6,965
Posted By rammm
#!/bin/ksh mv /int/int1/abc.txt...
#!/bin/ksh
mv /int/int1/abc.txt /int/int1/1.txt

echo "Enter the Value : " read value echo "$value" sed '1s:\(.\{4\}\)\(.\{3\}\):\1'$value':' 1.txt


In the above code i try to replace the ...
6,965
Posted By rammm
Thank you it works fine. :) One more thing, I...
Thank you it works fine. :) One more thing,
I have a text file as 1.txt with following content,
q34566788u
w2343556666t

I have used script file sample.sh with content,

#!/bin/ksh
echo...
6,965
Posted By rammm
Hi pokerino, Thanks. the code is...
Hi pokerino,
Thanks. the code is working but i didt run the script separately i.e ./newfile.sh sec.txt disp.out . If i run in that way it is working. I am using this code as part of the...
6,965
Posted By rammm
Hi pokerino, Its not working. Can you explain...
Hi pokerino,
Its not working. Can you explain me in detail. I used the code as follows,

#!/bin/bash if [ "$( cat $sec.txt)" -lt "$( sed -n '4 p' $disp.txt)" ] then echo "less than" fi...
6,965
Posted By rammm
To compare the content of two text files
I have two files,

sec.txt(1st File)
3172

disp.txt(2nd file)

the file name is
***********
45676

Now i want to compare the value in sec.txt file with disp.txt file
Excatly i want to...
3,596
Posted By rammm
awk reads the file line by line.ok. Does the 0 in...
awk reads the file line by line.ok. Does the 0 in $0 is refer to first line of the file ?
3,596
Posted By rammm
Thanks
Thank you scott, the code works fine :)

---------- Post updated at 05:21 AM ---------- Previous update was at 05:04 AM ----------

Hi scott, In mentioned code what is $0 refers to ?
awk '{print...
3,596
Posted By rammm
To display the selected part in text file of unix
0400903071220312 20120322 20:21
1TRANTELSTRAFLEXCAB22032012CMP201323930000812201108875802100A003485363 12122011AUS 182644 000C2
8122011 0000 ...
Showing results 1 to 18 of 18

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