Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

Is it correct? if test grep EOF $a ...

Login or Register to Reply

Thread Tools Search this Thread
# 2  
Welcome to the forum.

No, it is not. Running above through a shell immediately yields
bash: test: EOF: binary operator expected

if grep EOF $a

and make sure to enter the name of an existing file when reading a.
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Using grep with test and without using [[ ]]
As an exercise, I'm trying to re-write this code without the compound square brackets, using grep and test. Need to know what to do about the "equal-tilde". #!/bin/bash # test-integer2: evaluate the value of an integer. INT=-5 if +$ ]]; then if ; then echo "INT is zero." else if ; then...... Shell Programming and Scripting
Shell Programming and Scripting
Grep correct pattern with special character and variables
cat file time="north_south_east_west_08:00" location="A" start="left" status="ok" end="north" time="north_south_east_west_12:00" location="C" start="right" status="ok" end="south" time="north_south_east_west_23:00" location="G" start="left" status="ok" end="east"...... Shell Programming and Scripting
Shell Programming and Scripting
Using grep inside a test
Hi, I want to use grep inside a test statement, but I am getting an error message. Two variables testvarNum=5 testvarNonNum=x echo $testvarNum | grep * The result of this is as follows: 5 However, when I try the following (i.e. to test if the variable is numeric or non-numeric):...... Shell Programming and Scripting
Shell Programming and Scripting
Is this grep command correct?
Hi I need to know if I have got the following grep command correct. I wanted to find from myfile.txt all signed real numbers (e.g. +5.0, -78, but not 5.0, 5 are not). I have thought about it and decided it was this: grep '' myfile.txt but I was wondering if this was correct. If...... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
Using grep in a test/if statement
Okay, well this is more or less my first attempt at writing a shell script. Anyways, here's my code: cd ${PATH} if then rm ${FILE} ./anotherScript else exit 1 fi exit 1 Anyways, it's a pretty simple script that is supposed to search for the...... Shell Programming and Scripting
Shell Programming and Scripting

Featured Tech Videos