Search Results

Search: Posts Made By: PrasannaKS
1,926
Posted By PrasannaKS
multiple word check
Hi

left value is 1.34 and i want it to compare against 4 right values 2.01, 3.01. 4.09 ,1.11 . This is not numerical comparion. I need for text. I get syntax errors ...

value =1.34 -->...
8,232
Posted By PrasannaKS
Perl : find perl executable binary
Hi

I have an oracle perl script running as cron job across multiple unix servers. The issue is the perl binary is found in multiple directories

I use in the start of the script ......
31,149
Posted By PrasannaKS
Perl : Find a string and Print full line
Hi

Need a perl script to read lines in a file, scan for a string named "APPLE" and write to different file the only lines containing the matched string.
2,416
Posted By PrasannaKS
Compare 2 files
HI

I have a list of items in 2 files. Some items are present in both the files in any order. Say for example item name is 'apple', it may be present in line 2 of file 1 and line 10 of file 2.

I...
3,256
Posted By PrasannaKS
worked fine. Thanks Franklin.
worked fine. Thanks Franklin.
3,256
Posted By PrasannaKS
yes, the first half of the output is empty and...
yes, the first half of the output is empty and then one line with the correct word printed and the blank output.

In simple terms, I need to print the word which starts with a letter 'o' for each...
3,256
Posted By PrasannaKS
i also have down the file like Req Har ...
i also have down the file like

Req Har omrh (2254) is terminating
MR Rect (MRRT) omrrt (2255) is concluding
DR Rect (DRRT) omrdt (2256)...
3,256
Posted By PrasannaKS
no, I do have brackets before the pattern
no,

I do have brackets before the pattern
3,256
Posted By PrasannaKS
output required
Hi

I have the following output

Message man amm (9196) is calling
Hello & Alert man amtrr (9197) is stopped
Find amfi (19198) is...
9,539
Posted By PrasannaKS
other days are normal for all strings. Only on...
other days are normal for all strings. Only on Monday and only for that one string 'DEF' on Monday the script should ignore
9,539
Posted By PrasannaKS
If condition inside while???
Hi

source is text file named alpha.text containing entries

ABC
DEF
XYZ
YYY
BBB


I need a small shell script which should do read the entries in alpha.text one by one and check it with...
1,342
Posted By PrasannaKS
row to column
Hi

I have a file that contains blocks of data. Each block contains 3 rows of data. The block starts with a string <--- ending is <-----

<---
A B C
D
E F
<---

I want to dump this block...
3,164
Posted By PrasannaKS
Perl - Command assingment to variable.
Hi

How do i assign the output of a unix command to a variable ? say i want the whoami output to be assigned to a variable?

Thanks
3,451
Posted By PrasannaKS
search directory-find files-append at end of line
Hi,

I have a command "get_data" with some parameters in few *.text files of a directory. I want to first find those files that contain this command and then append the following parameter to the...
2,893
Posted By PrasannaKS
HPUX - Sendmail and delete file
Hi,

I am logging the output of bdf command to a file called /tmp/bdfoutput in HPUX server. I want a mail to be sent at 11.55 PM everyday and then the file needs to be rolled over as...
9,068
Posted By PrasannaKS
Thank you $1 is the first argument ..which...
Thank you

$1 is the first argument ..which means

put.sh anyfilename

anyfilename takes $1 right?
9,068
Posted By PrasannaKS
what is $$ S$ $# in shell scripting
Hi experts,

I have a shell script named put.sh which has a for loop statement

for i in `cat $1`
do
.....
done

what is $1 here?

also what is $$ & $# in shell scripting?

Thanks
6,750
Posted By PrasannaKS
Shell - Matching 3 letter file names
Hi

I am running a shell script with bdf command and want to match all files with length 3 inside a specific partitions. How do i do that

say

for example if i want to list all files with...
4,652
Posted By PrasannaKS
Thanks a lot
thanks a lot
4,652
Posted By PrasannaKS
Repeat same command on multiple lines
HI

I have a text file named docs with 100 filenames with full directory path one by one. I want to perform an action on all of them, the action i want to do this chown bin:bin <filename>. The...
2,630
Posted By PrasannaKS
awk spliting using separator
Hi

I have a file which looks like this


#HEllo
#How....
#version 1.0.1
#Author aaaaa

ab.-.1.-.90.-.80.-..-.OK
cd.-.8.-.91.-.800.-.xy.-..-.

the separator is .-. (dot hyphen dot)
...
2,619
Posted By PrasannaKS
Convert Row Entries Into Column entries
Dear People,

I have a file which has 5 entries for each hostname printed like a postcard address on my itanium box file, the format is below

Hostname
IP Address
O/S
Patchlevel
Location
...
4,556
Posted By PrasannaKS
try comm command if available in HP-UX
try the command

comm -23 file1 file2

you can reverse file1 and file 2 also....

i got it working on my hpux system
10,517
Posted By PrasannaKS
Read Hostname and Return IP Address
Dear Experts,

I have a text file on my itanium box which contains list of nearly 1000 hostnames. I do not have the IP Address of them. I want read each entry from the text file and want to do a...
Showing results 1 to 24 of 24

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