10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I tried to write a script for replacing some number in a bunch of files. However, I failed because my limited bash scripting knowledge.
Here I will explain the expected function:
I have many data files need to be processed. Here shows one part of a file as an example: a list with... (7 Replies)
Discussion started by: liuzhencc
7 Replies
2. Shell Programming and Scripting
Hi
I am failing to write a script which compares a list of dates in a file with today's date.
OS: Solaris 10
I have a file which has server names & dates, i need to compare the date in this file with today's date, if it is less than today it should print the server name.
code i tried is ... (3 Replies)
Discussion started by: nanz143
3 Replies
3. UNIX for Dummies Questions & Answers
My project is to get a temperature reading from a refridgerator every 2 minutes and check to see if the door has been left open.
I don't yet have the mastery of Linux, being a complete noob, but I reckon I need a text file with the latest temperature reading in it. This I've managed to do by... (2 Replies)
Discussion started by: Fitch
2 Replies
4. Shell Programming and Scripting
this is my file:
#!/bin/sh
a=`cat /home/$USER/Desktop/lol`
c=`cat /home/$USER/Desktop/lol1`
if ; then
echo "$a = $c"
else
echo "They are not equal"
fi
The lol file contains 1aa and the lol1 file contains 1aa as well.
Unfortunately the output is
Even when I put -eq instead of == I get
... (9 Replies)
Discussion started by: hakermania
9 Replies
5. UNIX for Dummies Questions & Answers
Hello all,
I always found help for my problems using the search option, but this time my request is too specific. I have two files that I want to compare. File1 is the index and File2 contains the data:
File1:
chr1 protein_coding exon 500 600 . + . gene_id "20532";... (0 Replies)
Discussion started by: DerSeb
0 Replies
6. Shell Programming and Scripting
I have two variables and want to perform some functions after comparison
$cat file1
14.abcde
a=`cut -f 1 -d "." file1
b=15
if
then
....
fi
but i got an error message says that unary operator expected
and i think its because of $a is a string and trying to compare with... (3 Replies)
Discussion started by: bonosungho
3 Replies
7. Linux
Dear forum members,
I was configured smb ldap in fedora core 6, past 1 year its running nice with out any problem. but last one week I can't able to save microsoft office application(excel) in server. server having a sufficient memory(2Gb RAM).
this problem only for ms application. how can i... (4 Replies)
Discussion started by: erbalamurugan
4 Replies
8. UNIX for Advanced & Expert Users
Hi
I am using the below script to compare two files.. i am getting error as mentioned below:
#!/bin/sh
# Script to find the difference between 2 files
# Remember the old file file1 should always be the first argument. Else, the logic would reverse.
# diff.sh <old file> <new file>
if ] ;... (4 Replies)
Discussion started by: gkrishnag
4 Replies
9. Shell Programming and Scripting
Dear Friends,
I have two data file containing 4 coloums.
my first file has data like this
ex:
file1:
2.56 66.82 ***
2.56 66.82 ***
2.54 66.84 ***
2.54 66.84 ***
2.51 66.84 ***
2.51 66.84 ***
2.51 ... (8 Replies)
Discussion started by: rajan_ka1
8 Replies
10. Shell Programming and Scripting
Hi all,
I'm looking to modify a script to check disk space usage.
Here is the code at the moment:
#
# The control file, MONITOR_DISK_SPACE, must be in the format ... Drive:;threshold_percentage
# eg.
# C:;95
# D:;98
# E:;90
#
# For each line in the control file (MONITOR_DISK_SPACE)... (2 Replies)
Discussion started by: lelliott
2 Replies