10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
compare two variables and print the difference
i have two variables
X1=rac1,rac2
Y1=rac2,rac3
output=rac1,rac3
Use code tags to wrap code fragments or data samples. (1 Reply)
Discussion started by: jhonnyrip
1 Replies
2. Shell Programming and Scripting
Hi
PRIM_SEQ=`some sql code`
and output of PRIM_SEQ is like below
120
130
STB_SEQ=`some sql code`
and output of STB_SEQ is like below
115
110
i need to compare this two variables output ( decimal numbers)
1) What I want to do is to compare every number in the PRIM_SEQ with... (8 Replies)
Discussion started by: amar1208
8 Replies
3. Shell Programming and Scripting
Der colleagues,
4 days I am trying to solve my issue and no success..
Maybe you can give me a clue how to achieve what I need..
So I have two files.
file1 example:
1_column1.1 1_column2.1 aaa 1_column4.1
1_column1.2 1_column2.2 ttt 1_column4.2
1_column1.3 1_column2.3 ... (10 Replies)
Discussion started by: nypreH
10 Replies
4. Shell Programming and Scripting
Hey guyz,
I have a table which shows the presence or absence of my variables (A,B,C,...) in my observations (1,2,3,...)
* A B C ...
1 1 0 1
2 1 1 0
3 1 0 0
...
I want to calculate the co-presence of my variables. to have a table shows the pairwise presence of the variables (have... (1 Reply)
Discussion started by: @man
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have to use the vaious kind of filters based on various fields in the input file like - count occurence of cases where "TRK-GRP" = 169 or like "ADDR-DIG" = 80080.
I don;t know the positional variable for all below fields. Please help.
Input File :
+++ BEST 12-05-27 15:06:49 MDI 3478... (2 Replies)
Discussion started by: vanand420
2 Replies
6. Shell Programming and Scripting
Can anyone help me with how to print the variable using a awk statement.
for i in ` cat serverlist.txt ` ; do
my command | awk '{print $1 $2 $i}'
done
It should print like below but it is not
XXXXX YYYYY Servername
XXXXX YYYYY Servername
XXXXX YYYYY Servername
XXXXX YYYYY... (6 Replies)
Discussion started by: rrb2009
6 Replies
7. Shell Programming and Scripting
Friends
I need to have a shell script which will feed variables from two different files line-by-line. For example, I have two files - permission and file_name.
Contents of permission is -
644
755
....
contents of file_name
/file1
/file2
.....
Now I want 644 permission will be... (4 Replies)
Discussion started by: atanubanerji
4 Replies
8. Shell Programming and Scripting
I have the following loop:
for I in `ldm ls |grep -v ^NAME| awk '{print $1}'`
do ldm ls -o network $I | echo $I | tr -s ' ' | cut -f6 -d " " | more +9
I would like the following displayed to a file:
The value of $I, followed by a newline, then the information from the rest of the... (3 Replies)
Discussion started by: hxman
3 Replies
9. Shell Programming and Scripting
for example in my make file im building path from env variables and string but need to see what is did
what is the best way to print the result?
say I have in my Makefile :
exec_prefix = $(RUN_ENV_LOCAL)/apache
and I will like to print the exec_prefix value , how can it be done ? (1 Reply)
Discussion started by: umen
1 Replies
10. Shell Programming and Scripting
Hi,
I have a file containing emails about some issues.
Using a bourne shell script, I need to extract the issue number from the URL's contained in the file (all URL's look like this : http://www.openoffice.org/issues/show_bug.cgi?id=1881) and then print out the issue number, status and... (2 Replies)
Discussion started by: Chris Jones
2 Replies