03-18-2009
What is this? var2=${var1#??????????}
Googling the answer to this question just doesn't work when Google won't search your symbols for you. Can someone tell me what this command will assign to var2, and where I can find more information about using braces in this way?
var2=${var1#??????????}
Thanks so much.
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
*EDIT -- **FIXEd I must've done something wrong, because it works now..
I punched in "if" in the forum search but nothing came up, so I'm posting it here.
Quick question: Can someone correct my syntax.
#!/bin/ksh
if (( var >= 1 && var <= 5 )); then
.................................. (1 Reply)
Discussion started by: yongho
1 Replies
2. Shell Programming and Scripting
Hello,
I have created numerous variables called $mask1 $mask2... $maskN. I wish to echo these variables, below is the code for the two functions, the first creates the variables and the second echos them.
It is the second function which does not work. The line (i believe to be wrong) is in... (1 Reply)
Discussion started by: rorey_breaker
1 Replies
3. Shell Programming and Scripting
OK, while I'm not new to the Mac or some of the the inner workings of Mac OS X I am quite new to scripting. And while I have "Learning the Bash Shell" by those lovely people at O'Reilly (Cameron Newham et. al.) I'm missing something, I just know I am.
Here's the problem:
At the beginning of... (2 Replies)
Discussion started by: woodgie
2 Replies
4. Shell Programming and Scripting
HI
i like to concatenate the two variables
var1=$line (ie 22885068900000652 B86860003OLFXXX592123320081227)
var2=$amount (ie 123456)
i want to club together both the above varaible var1 & var2 and assign back to var1
right now i am doing like this but it is not working.
var1=`echo... (1 Reply)
Discussion started by: kshuser
1 Replies
5. Shell Programming and Scripting
Hello,
In one part of my shell program I need to translate many of lines in the following pattern :
/(folder1|...|folderN)/(sub1|...|subN)/.../(file1|...|fileN)
into strings :
/folder1/sub1/.../file1
/folder1/sub1/.../...
/folder1/sub1/.../fileN
...
/folderN/subN/.../fileN
the... (2 Replies)
Discussion started by: Ghadamyari
2 Replies
LEARN ABOUT DEBIAN
nemiver
nemiver(1) General Commands Manual nemiver(1)
NAME
nemiver - graphical debugger for GNOME
SYNOPSIS
nemiver [options] [<prog-to-debug> [prog-args]]
DESCRIPTION
This manual page documents briefly the nemiver command.
nemiver is a standalone graphical debugger that integrates well in the GNOME desktop environment. It currently features a backend which
uses the well known GNU Debugger gdb to debug C/C++ programs.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below.
-?, --help
Show help options.
-v, --version
Show version of program.
--env=" var0=val0 var1=val1 var2=val2 ... "
Display the value of an expression.
--attach=<pid|process_name>
Attach to a process.
--listsessions
List the saved debugging sessions.
--purgesessions
Erase the saved debugging sessions.
--executesession=N
Debug the program that was of session number N
--log-domains=DOMAINS
Enable logging domains DOMAINS
--logdebuggeroutput
Log the debugger output.
BUGS
If you find a bug, please report it at http://bugzilla.gnome.org/enter_bug.cgi?product=nemiver.
AUTHOR
nemiver was written by Dodji Seketeli <dodji@gnome.org> and Jonathon Jongsma <jjongsma@gnome.org>.
This manual page was written by Luca Bruno <lucab@debian.org>, for the Debian project (but may be used by others).
06 January 2008 nemiver(1)