I had different problem scenarios with IF statement. Can any expert please enlighten me on the difference with these scenarios. Thank you.
1st Scenario:
testdate=`date +%Y%m`
test=`cat /var/log/database0.$testdate*.log | grep "Errors found during processing" | tail -10`
if
then
... (4 Replies)
I am kind of new in Unix and i have to make a menu. I want to put an if statement in the menu. you should enter the filename and it goes to that file. How do i do this? (1 Reply)
Good morning all!
I want to know if Im interpreting this if statement below right.
if(((1) || (0)) && (1)){
do stuff;
}
This is saying: if true piped into false, then true, then do stuff. Right?
What does the && stand for?
thanks in advance!
ben (3 Replies)
Hi
I am very new to Unix programming and shell scripting. I am trying t figure out how to write a little script that will output the number of directories. I can find the number of directories using ls -l | grep "^d" | wc -l I can not figure out how to do it so when I type the name... (8 Replies)
1. The problem statement, all variables and given/known data:
Two problems I need solving please. I created a script where the user types in 7 numbers as standard input and each one is then stored in an array. Now I need to perform the following calculations on those numbers:
1) Use a while... (11 Replies)
I came across a bash script that outputs the forecast for the day and the max temperature but at the end of the day the max temperature disappears ($6) and I am left with "°C" after the forecast.
Here is the script:
#! /bin/bash
curl -s --connect-timeout 30... (7 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies
LEARN ABOUT MINIX
whatis
WHATIS(5) File Formats Manual WHATIS(5)NAME
whatis - database of online manual pages
SYNOPSIS
/usr/man/*/whatis
/usr/man/whatis
DESCRIPTION
The whatis file in each manual page directory is a database of titles for manual pages. This database is used by man(1) to map titles to
manual pages names. The database is created by makewhatis(1) from the NAME sections of the manual pages.
The NAME secions must be simple lines with no troff fluff but one backslash like these two:
whatis - database of online manual pages
cawf, nroff - C version of the nroff-like, Amazingly Workable (text) Formatter
These lines are transformed by makewhatis to these two lines for the database:
cawf, nroff (1) - C version of the nroff-like, Amazingly Workable (text) Formatter
whatis (5) - database of online manual pages
As you can see they are in section number order, so that man searches them in section order.
Each entry is just a single line, restricting the NAME section to a single line too with just one dash, and commas and spaces before the
dash as you see above.
SEE ALSO man(1), whatis(1), makewhatis(1), man(7).
BUGS
It seems to be impossible for many manual page writers to keep the NAME section simple. They also like to use every font available in
their documents. My simple scripts can't read their NAME sections, my simple me can't read their texts.
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
WHATIS(5)