Search Results

Search: Posts Made By: wakhan
3,591
Posted By wakhan
Grep & EMail "HOW to quit ??? "
Hello All,


I am using the below code to grep particular word from file and then emailing it through mail command. the problem is this that when i run the script so it stops and ask me for the...
3,092
Posted By wakhan
Hello All , I am using the below code to...
Hello All ,

I am using the below code to find my desired line between start and end line. Red marked are my start and end time and i want to
find the desired line between them. Can you please...
3,092
Posted By wakhan
searching between start and end time
Hello All,

Below mentioned is my log file.

I want to make a script which ask for start time and then end time and then search particular word between those lines.

Like
start time:2
end...
1,957
Posted By wakhan
Hello All, I am transferring a file through...
Hello All,

I am transferring a file through FTP from one system to other and i want that as soon as the file comes on my system ,

command: apxrcv -text < filename > out

executes on it and...
1,957
Posted By wakhan
Hi, i am using solaris OS, and my requirement is...
Hi, i am using solaris OS, and my requirement is that every file which comes to my folder through FTP automatically executes with the command mentioned below. otherwise i have to manually run that...
1,957
Posted By wakhan
Continously checking folder and executing files
Hello All,

I want to make a script which continously checks one folder all the time that is there is any file in it or not, and if it found any file in it than execute that file with the...
6,391
Posted By wakhan
No this code is not giving any output in output...
No this code is not giving any output in output file.

/omp/bin/TICLI "op:alarm,all" &
nawk '{$1=$1}/^CELL 6/{exit}/^CELL/' /omp/omp-data/logs/OMPROP1/081208.APX > all

Below code is giving...
6,391
Posted By wakhan
nawk '/CELL 86/{exit}/CELL/{$1=$1;print}' LOG >...
nawk '/CELL 86/{exit}/CELL/{$1=$1;print}' LOG > newfile

Above code is also getting other unwanted lines from LOG file. I just want those files which start from word CELL like this:
CELL 83, ASMB...
6,391
Posted By wakhan
Hello All, nawk...
Hello All,

nawk '/CELL/{sub(",","",$2);$1=$1;print > tolower($1$2)}' file > newfile

INPUT FILE
KarachiOMP root> cat all
OP:ALARM,ALL!
PF

M 54 OP:ALARM
CELL 3 PACKET PIPE (PP) 3
...
7,340
Posted By wakhan
Hello All, #/bin/ksh /omp/bin/TICLI...
Hello All,

#/bin/ksh
/omp/bin/TICLI "op:alarm,all" &
tail -f /omp/omp-data/logs/OMPROP1/081206.APX | grep "CELL" > all


Now i am using the above code to run the command (op:alarm,all) on...
7,340
Posted By wakhan
Okay is there is someway that i run the command...
Okay is there is someway that i run the command on TICLI "op:alarm,all"
and at the sametime try to grep the output of that command through log file.

The output of the command is something like...
6,391
Posted By wakhan
Thanks Franklin52 for your Great HELP, now code...
Thanks Franklin52 for your Great HELP, now code is working with my file.

Can you please check the thread named below in Shell Programming and Scripting, Actually i having problem in that too,...
7,340
Posted By wakhan
OUT=`/omp/bin/TICLI "op:alarm,all"` && echo $OUT...
OUT=`/omp/bin/TICLI "op:alarm,all"` && echo $OUT > outputfile

I used the above code and it is also not giving the complete output, second it is also changing the output format.

i also want to...
6,391
Posted By wakhan
Now i am using nawk and its giving below error....
Now i am using nawk and its giving below error. all is the name of my input file.

#!/bin/sh
nawk -F" |," 'NF{print > tolower($1$2)}' all

KarachiOMP root> ./code3
nawk: null file name in print...
6,391
Posted By wakhan
Can you please explain how to use below code: ...
Can you please explain how to use below code:

awk -F" |," 'NF{print > tolower($1$2)}' file

where i have to define the input file and what will be the name of output file?

i put the below...
7,340
Posted By wakhan
Hello All, Below code is giving the same...
Hello All,

Below code is giving the same output as this:/omp/bin/TICLI "op:alarm,all" > outputfile.can you please explain what 2>&1 is doing.

/omp/bin/TICLI "op:alarm,all" > outputfile 2>&1
...
7,340
Posted By wakhan
Command Output into newfile
No, the below code is still not working correctly, the output file do not contain the complete output of the command.

Actually this command takes time to generate ouput, so is there someway that...
7,340
Posted By wakhan
I am rephrasing the same question for more...
I am rephrasing the same question for more explanation:

Actually i run one command and i want command's output in newfile.

For this i am using below code:
#!/bin/sh
/omp/bin/TICLI...
6,391
Posted By wakhan
Hello Christoph Spohr Can you please tell...
Hello Christoph Spohr

Can you please tell me the usage procedure of your code:

while read line
do
[[ $line = *CELL* ]] \
&& FILENUMBER=$(sed 's/CELL \([0-9]\+\)[ ,].*/\1/' <<< $line) \...
6,391
Posted By wakhan
Hello All, I used this : cat cell | grep...
Hello All,

I used this : cat cell | grep "CELL 2" > cell2 to read file named cell and to grep only lines that starts from cell 2. But when i open the output file cell2 so it also contain lines...
7,340
Posted By wakhan
Getting command output and putting into newfile
Hello All,

I am using the below code:
#!/bin/sh
/omp/bin/TICLI "op:alarm,all" > filename

for getting command output and then putting the output into newfile but the problem is this, that not...
6,391
Posted By wakhan
Read data from one file and putting in new file ??
Hello All,

I have a file which contain data something like this:


CELL 2 TEST AND DIAGNOSTIC UNIT 2
CELL 2, CDM 1 CBR 1 TRANSMIT PORT (TXPORT) 1
CELL 2, CDM 1 CBR 2 TRANSMIT PORT...
1,423
Posted By wakhan
HELP REQUIRED (Thnaks.............)
Thanks jim mcnamara!!

The code really works now according to my requirement.

I have made little more change as below.

#!/bin/ksh
VAL='601 602 603 604 605 ....................'
for i in...
1,423
Posted By wakhan
Help Required
Below is my code which gives output like this: Every time we have to open the script file and change the value of TG in BEGIN. what i want to do is
that i give two three values at the sametime and...
4,672
Posted By wakhan
How to put for loop in nawk
Hello All,

How i can put loop in nawk. what i want is that i define a variable which contain vlaues like var='1 2 3 4 5' and then define for loop which gives vlaue to nawk one by one to varilable...
Showing results 1 to 25 of 57

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