10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello folks,
I have two files, which have usernames, I want to see the contents of file1.txt which is missing in file2.txt and another comparison file2.txt contents which is missing in file1.txt. please suggest.
file1.txt
user
u2
u8
a9
p9
p3
u4
z8
aaa
ahe
oktlo (7 Replies)
Discussion started by: learnbash
7 Replies
2. Shell Programming and Scripting
Hi I have written below Script
IFS=:
while read emp_id_ name manager department;
do echo "$emp_id_";
count=`sqlplus -s sys/orcl as sysdba << EOF
select count(*) from employee where emp_id = ('$emp_id_');
exit;
EOF`;
echo "$count" ;
if ; then echo "data exist" else echo "not exist" ; fi;... (3 Replies)
Discussion started by: Rushab
3 Replies
3. UNIX for Dummies Questions & Answers
Hi friends,
I would like to compare two dates in an IF statement.
This is what I am trying, but it doesn't work.
date=20120122
minus=6
if ; then
...
fi
what would the IF clause looks like?
Thanks! :) (5 Replies)
Discussion started by: kokoro
5 Replies
4. UNIX for Dummies Questions & Answers
hi guys
i need a program that can compare a value read from a com-port and one from the terminal.
can somebody help me???
using linux kernel 2.6.14-M5
can only use standard function in sh and bash... (5 Replies)
Discussion started by: metal005
5 Replies
5. Shell Programming and Scripting
Does $((mathematical expression)) and $ mean the same? (7 Replies)
Discussion started by: proactiveaditya
7 Replies
6. Shell Programming and Scripting
I need some help which would probably be for most of you a simple script.
I need to read in the data from a .dat file and then compare avg to see who is the highest avg. Here is my script so far.
#!/bin/ksh
#reading in the data from lab3.dat
filename=$1
while read name o1 o2 o3 o4 o5 o6... (0 Replies)
Discussion started by: bluesilo
0 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a string : -
ICFFHASMTAAMPFINCL22082006000002548789632
and i want to add delimiter after certain charater position through a script, eg. ICFFH,ASMTAAMPF,INCL,22082006,000002548789632.
I have tried and am able to achieve it through cut-paste. But i don't want to use cut paste as it... (6 Replies)
Discussion started by: divz
6 Replies
8. Shell Programming and Scripting
Hi,
I need to pass a space bar or an enter key in a script for it to return control to my script. How do I do this.
For example the spacebar ascii value is 127, how do I tell the script to run this command. (4 Replies)
Discussion started by: quispiam
4 Replies
9. Shell Programming and Scripting
I need a help here. My administrator made some changes and we couldn't access some files any more.
I am trying to replace a list of files from one format to another. Can anyone help me please?
Here is an example of
aaa_bbbb_cccccc.03172002_02:30:08
How can I replace the ':' with... (3 Replies)
Discussion started by: odogbolu98
3 Replies
10. Filesystems, Disks and Memory
can anyone point me to a comparison of *nix file systems ?
i think i prefer a journalling fs
but i would like to see a comparison between several fs's before i make up my mind (2 Replies)
Discussion started by: cnf
2 Replies