I am looking for the correct syntax on the expr command in UNIX. I have a script that I am building at the moment. the script is creating file1 that is an actual .sql file that is going inside the oracle database to get some information in there. It take that information, puts it inside another... (2 Replies)
Hi All,
I might be making a silly mistake but I need ur help.
I have initialized various variables:
cur_month=`date +%m`
cur_year=`date +%y`
last_year=`expr $cur_year \- 1`
It works fine for cur_month & cur_year....but has problems with last_year.
FOR LAST YEAR IT GIVES A FOLLOWING... (2 Replies)
Hi All,
I have created 85 users on Linux server.
I use bsh shell for all users.But after any user get logged in on unix,he/she is not able to access the expr command.So anyone can tell me that if i have to include some files to access expr command.Because when i write-> expr 6+2 on $ prompt i'll... (1 Reply)
:)
hi Unix gurus,
Pls consider the following piece of code
str='hello'
length=echo $str|wc -c
echo $length
y= ` expr \( 80 - $length \) `
echo $y
:confused:
The last echo stmt is displaying 0 as the result.
If i put direct value like 6 instead of $length in i 3rd stmt it is giving... (8 Replies)
Hi
Can anyone explain me the usage of this command and the arguments used here and what will be the expected output :
v_num=`expr nav_d_20100204_1759 : '*\(*\)'`
what will be the value returned in v_num.
Thanks in Advance!!!
Regards
Naveen Purbia (3 Replies)
Hi,
I am trying to code a unix function to calculate date difference between two date variables. I am stuck at a point where I am trying to convert hours into minutes. Below is the code I am doing.
function get_elapsed_time
{
export PROPS_FILE=temp.properties
export... (8 Replies)
Hi guys,
For some reason the terminal on my mac does not let me run string manipulations commands using the expr command. I'm not sure how to fix this so I'm requesting a "work-around" to using the expr command...
This is the string I'm working with:
"neo_opls01_1.log"
And I'm trying to... (9 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. Write a script called "tod" that will display the time of day in am or pm notation rather then the 24 hour clock time. Use expr to convert from 24-hour clock time.
Use... (13 Replies)
I'm trying to check if a variable'd string is only one character and use that in an if statement the only way I could find is:
$expr "${var}" : . # expr STRING : regrep
where the "." is the grep wildcard for any single character.
Whats wrong with my code here and is there a... (3 Replies)
Discussion started by: Tewg
3 Replies
LEARN ABOUT DEBIAN
griffith
griffith(1)griffith(1)NAME
griffith - film collection manager
SYNOPSIS
griffith
DESCRIPTION
Griffith is a film collection manager. Adding items to the movie collection is as quick and easy as typing the film title and selecting a
supported source. Griffith will then try to fetch all the related information from the Web.
OPTIONS -h --help
Show usage information.
-D --debug
Run in debug mode.
-C --clean
find and delete orphan files in posters directory.
--check-dep
check dependencies - if all needed Python modules are installed, it prints nothting.
--sqlecho
Prints all SQL queries to standard output.
--home DIR
Set Griffith's home directory. Use this option if you want to change the default ~/.griffith
Printing movie list:
-c <expr> --cast=<expr>
cast field must contain <expr>
-d <expr> --director=<expr>
director field must contain <expr>
-o <expr> --original_title=<expr>
original title field must contain <expr>
-t <expr> --title=<expr>
title field must contain <expr>
-y <number> --year=<number>
movie must be released in year <number>
-s <columns> --sort=<columns>
set sort columns to <columns>. Example: --sort=o_title,number,director
SEE ALSO
Homepage: <http://www.griffith.cc/>
BUGS
If you want to help or report any bugs founded please visit homepage <http://www.griffith.cc/> or <https://bugs.launchpad.net/griffith>
AUTHORS
Griffith was written by Vasco Nunes and Piotr OA1/4arowski. See the AUTHORS and THANKS files for a list of other contributors.
Copyright (C) 2005-2008 Vasco Nunes <vasco.m.nunes@gmail.com>, Piotr OA1/4arowski <ozarow+griffith@gmail.com>,
This man page was written by Piotr Ozarowski
Dec 20, 2006 griffith(1)