Search Results

Search: Posts Made By: sudhakaryadav
4,649
Posted By sudhakaryadav
Thanks frans ..Its working fine now ...
Thanks frans ..Its working fine now

#!/usr/bin/sh
x=` wc -l < ATPBSC2log.txt_APT `
i=10;
if [ "$x" -lt "$i" ];
then cp /tmp/ATPBSC2log.txt_APT test.txt
else cp /tmp/ATPBSC2log.txt_APT...
4,649
Posted By sudhakaryadav
excuted after modifying the script suggested by...
excuted after modifying the script suggested by you but still getting the error :
"syntax error at line 2: `x=$' unexpected"

bash -x script output :
++ wc -l
+ x=' 0'
+ i=10
+ '[' ' ...
4,649
Posted By sudhakaryadav
original script : #!/bin/bash x= $( wc -l <...
original script :
#!/bin/bash
x= $( wc -l < ATPBSC2log.txt-APT )
i=10;
if [ "$x" -lt "$i" ];
then cp /tmp/ATPBSC2log.txt-APT test.txt
else cp /tmp/ATPBSC2log.txt-APT test1.txt
fi

after...
4,649
Posted By sudhakaryadav
i was tried to use the command x=$(wc -l <...
i was tried to use the command
x=$(wc -l < file)
in the script but when iam excuting getting error as
syntax error at line 2: `(' unexpected

Code :
#!/bin/bash
x=$(wc -l < file)
i=10
if...
4,649
Posted By sudhakaryadav
Reading data from file and assigning to variable
I was trying to store the number of lines in a file and store it in a file.after that i want to store the information in a file to a variable which is further used in the if loop to check certain...
1,214
Posted By sudhakaryadav
Need help in using sed command
Hi,
Please provide the command to find and replace a character in a file using 'sed' command.

Input file :
TPK001 temp11 DOOR ALRAM BOTH A.C'S FAILTY

i want to replace ' with...
9,825
Posted By sudhakaryadav
Removing empty lines(space) between two lines containing strings
Hi,
Please provide shell script to Remove empty lines(space) between two lines containing strings in a file.

Input File :
A1/EXT "BAP_BSC6/07B/00" 844 090602 1605
RXOCF-465 ...
5,750
Posted By sudhakaryadav
Re:Append each line to next previous line in a file
Hi Gajanan,
Thanks for ur reply..for single its working.if i have more lines then output is not coming properly..
I/P FILE :

A1/EXT "BAPBSC10/07B/00" 523 090530 0115
RXOCF-430 ...
5,750
Posted By sudhakaryadav
Append each line to next previous line in a file
Hi all,
Please help me in providing sample code to append the following 4 lines in one row.

Input :

A1/EXT "BAPBSC10/07B/00" 523 090530 0115
RXOCF-430 HY1711 1...
8,760
Posted By sudhakaryadav
How to ignore the Spaces while string Comparison
I want to ignore the spaces while doing string comparison between two files.
Iam using "comm" command to compare the files.
40,340
Posted By sudhakaryadav
Removing files older than one week in a directory
Hi,
I need a shell script to remove the files older than a week in a directoy and if necessary to zip the files.
2,873
Posted By sudhakaryadav
can u provide the information on how to invoke...
can u provide the information on how to invoke PERL scripts from Solaris prompt. I want to run many Perl scripts using one Shell script.
2,873
Posted By sudhakaryadav
Running many PERL scripts in one file
Hi,
I have many PERL scripts in my system(Solaris 10 UNIX OS).I want to define all scripts in one file and run.Please suggest how to define.
3,600
Posted By sudhakaryadav
Comparison of two files which contains strings using Shell scripting or PERL
Hi,
I need sample code to compare the two files line by line which contains text strings and to print the difference in the third file.

Thanks in advance
4,069
Posted By sudhakaryadav
Thanks for ur reply..Once string format is...
Thanks for ur reply..Once string format is matched i want to print same line and next four lines in a seperate file and again i need to search for string format in a file.
Whenever string format is...
4,069
Posted By sudhakaryadav
Need help to print lines contains particular string format in a file
Hi,
I want to print the lines in a file that matches particular string format using shell scripting.
3,450
Posted By sudhakaryadav
Need help on "Net::SMPP" Module
Hi all,
I have installed Net::SMPP module in my system and i want to send SMS using SMPP account.
Please help me how to write the script for the same using Net::SMPP module.
5,860
Posted By sudhakaryadav
Need help on use of "cmd" command in net::Telnet module in PERL
in "cmd" command i want to copy the ouput of the command excuted to a particular file in a directory.
How to do this..??

Ex : $telnet->cmd(String => 'allip:acl=a1;',Prompt => '/</');
i want to...
16,674
Posted By sudhakaryadav
Tried by putting double back slashes and...
Tried by putting double back slashes and removing double quotes .
Still iam getting "pattern match timed-out at ./bsc.pl line 20" error.
...
16,674
Posted By sudhakaryadav
Need Help on "waitfor" command in net::Telnet Module in PERL
Hi,
Can anybody help me in writing command "waitfor" for string
"C:\WINNT\Profiles\mfcf0508>" while using net::Telnet module.
I tried the below format :
...
2,591
Posted By sudhakaryadav
Need Help on "waitfor" command in net::Telnet Module
Hi,
Can anybody help me in writing command "waitfor" for string
"C:\WINNT\Profiles\mfcf0508>" while using net::Telnet module.

I tried the below format :

...
14,121
Posted By sudhakaryadav
How to close TELNET Connection
Hi,
I have logged into a system using Telnet and iam unable to close the connection to connect to the next system using arrays.
Iam getting error "Connection Timed Out"

Iam using net::Telnet...
5,640
Posted By sudhakaryadav
Thanks for info..its working now
Thanks for info..its working now
5,640
Posted By sudhakaryadav
Need Help on Telnet using PERL Scripting
Iam trying to connect to a system through Telnet using net::Telnet Module
#!/usr/bin/perl -w
use net::Telnet
$myPassword = "abcdef";
$telnet = new Net::Telnet ( Timeout=>10,
Errmode=>'die');...
3,669
Posted By sudhakaryadav
Need Help on "Expect" command in shell programming
Hi,
Iam using Solaris 10 OS in the server.iam unable to find expect command in bin directory.how can i install the script in the server to use "expect" in shell programming.
Showing results 1 to 25 of 26

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