12-01-2014
Thanks. But it is not working
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am passing an argument to a file and i wanna check whether the argument is a number or string ?
how can i do this? (4 Replies)
Discussion started by: rolex.mp
4 Replies
2. Shell Programming and Scripting
hi,I am new to shell script,I have String,like this:
Number of rows exported: 5321
the numbe at end could changing,how can I extract this number and assign it to a variable,then use it later in script.
thanks. (19 Replies)
Discussion started by: vitesse
19 Replies
3. Shell Programming and Scripting
Is there any way to print all the string till we get a space and a number and store it a variable
for eg we have string java.io.IOException: An existing connection was forcibly closed by the remote host 12
All I want is to store "java.io.IOException: An existing connection was forcibly closed... (13 Replies)
Discussion started by: villain41
13 Replies
4. UNIX for Dummies Questions & Answers
I need to add space to certain directory. I believe I need to add space to the filesystem this directory belongs to. How can I find out what filesystem this directory belongs to? (3 Replies)
Discussion started by: NycUnxer
3 Replies
5. Shell Programming and Scripting
Hi,
I need to generate the text name dynamically in for loop,
ex,
VAR_COPY_FILE1= file path 1
VAR_COPY_FILE2= file path 2
VAR_COPY_FILE3= file path 3
for i in 1 2 3
do
if
then
"do some process here"
fi
done (3 Replies)
Discussion started by: msubash26
3 Replies
6. Shell Programming and Scripting
I am parsing a file and I get differnt results everytime.
Sometimes I get 12s sometimes I get 54m and sometime 3h..
v1=12s or v1=54m or v1=3h
12s - 12 seconds
54m - 54 minutes
3h - 3 hour
I have to write a script in such a way that it whenever v1 is in minutes,
I should strip "m"... (14 Replies)
Discussion started by: jayeshpatel
14 Replies
7. Shell Programming and Scripting
I need to remove double quoted strings from specific lines in a file. The specific line numbers are a variable. For example, line 5 of the file contains
A B C "string"
I want to remove "string". The following sed command works:
sed '5 s/\"*\"//' $file
If there are multiple... (2 Replies)
Discussion started by: rennatsb
2 Replies
8. Shell Programming and Scripting
Hi All,
I have a file test.txt.
Content of test.txt :
1 vinay se
2 kumar sse
4 kishore tl
I am extracting the content of file with below command.
awk '$2 ~ "vinay" {print $0}' test.txt
Now instead of hardcoding $2 is there any way pass $2 as variable and compare with a... (7 Replies)
Discussion started by: Girish19
7 Replies
9. Shell Programming and Scripting
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Discussion started by: newbie_01
2 Replies
10. Shell Programming and Scripting
I have two files, file1 and file2 who have identical number of rows and columns. However, the script is supposed to be used for for different files and I cannot know the format in advance. Also, the number of columns changes within the file, some rows have more and some less columns (they are... (13 Replies)
Discussion started by: maya3
13 Replies
LEARN ABOUT DEBIAN
cadabra
CADABRA(1) CADABRA(1)
NAME
cadabra - field-theory motivated computer algebra system
SYNOPSIS
cadabra
DESCRIPTION
Cadabra is a computer algebra system for the manipulation of tensorial expressions.
The output of cadabra is either plain text or UTF8 encoded Unicode (see the environment variables described below). The line-breaking prop-
erties of the latter are used to wrap large expressions are reasonable points. In addition to the standard output, cadabra can print status
information, which is wrapped in special <status>...</status> blocks.
OPTIONS
--silent
Disables all output, except for output generated by the @print algorithm.
--loginput
Copy the input into the log file.
--input filename
Read the indicated file as input before switching to console input.
--prompt string
Set the prompt of the interactive session to the indicated string.
ENVIRONMENT VARIABLES
The following variables toggle various features on or off, depending on whether the variable is set or not:
CDB_PRINTSTAR
Display a star to indicate products. Without this setting, a space is used.
CDB_USE_UTF8
Use UTF8 encoding for output. This in particular will introduce non-breakable spaces to group objects together, as well as zero-
width non-breakable spaces to prevent line-breaks after brackets, underscore and caret symbols. When this variable is not set, the
output will be plain ASCII without any special symbols.
SEE ALSO
xcadabra(1).
See the web page at http://www.aei.mpg.de/~peekas/cadabra/ for binaries, example calculations and the full manual.
AUTHORS
Kasper Peeters <kasper.peeters@aei.mpg.de>
Dec 14, 2006 CADABRA(1)