11-30-2011
Thanks all. It seems I was misusing && instead of comma. I also appreciate the info about lvalue. Thank you again.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Please help me to perform sum of values in a loop, I am getting following error:
"total=0++432907765772: ++ requires lvalue"
where actual statement is as : total=$total+$amt
where amt can have +ve or -ve values
Thanks
Sandeepb (3 Replies)
Discussion started by: sandeepb
3 Replies
2. Solaris
I'm running sendmail (8.13.8+Sun/8.13.8/Submit) solaris 10.
When I send mail to root at the command line (whether I use a full-qualified address or just root), I get the error message
root... User address required.
Sending mail to root (either at the command line or in a cron job),... (10 Replies)
Discussion started by: csgonan
10 Replies
3. Programming
Hi,
I am trying to compile a program (not coded by me), and i'm getting this error:
203: error: lvalue required as left operand of assignment
As you may be guessing, the program doesn't compile, the line number 203 is the following:
... (2 Replies)
Discussion started by: Zykl0n-B
2 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. UNIX for Dummies Questions & Answers
im kinda new to shell scripting so i need some help
i try to run this script and get the error code
> 5 ")syntax error: operand expected (error token is "
the code for the script is
#!/bin/sh
#
# script to see if the given value is correct
#
# Define errors
ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies
6. Shell Programming and Scripting
Hi, i am getting error from below script.
Error: s1.sh: line 19: ((: j<: syntax error: operand expected (error token is "<")
#!/bin/bash
str=$(ps -eaf | grep smon | grep -v grep | awk ' {print $8}' | cut -c10-18)
i=1
while
do
temp=`echo $str|awk '{print $"'$i'"}'`
... (12 Replies)
Discussion started by: lakshmikanthe
12 Replies
7. UNIX for Dummies Questions & Answers
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies
8. Programming
z < 0 ? z= z + 2*r*cos(theta) : z= z - 2*r*cos(theta);
Does anyone know what is wrong here?
I've got compiler msg:
lvalue required as left operand of assignment
All variables are "double". I'm using gcc compiler (but I don't think that matters) (5 Replies)
Discussion started by: EmilyTheStrange
5 Replies
9. Homework & Coursework Questions
1. After trying to compile code error is given Lvalue required as left operand of assignment.
2. Relevant commands, code, scripts, algorithms:
if , else if
3. The attempts at a solution (include all code and scripts):
/*
File: incircles.cpp
Created by: James Selhorst
... (2 Replies)
Discussion started by: c++newb
2 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
distro-info
DISTRO-INFO(1) General Commands Manual DISTRO-INFO(1)
NAME
distro-info - provides information about the distributions' releases
SYNOPSIS
distro-info [OPTIONS]
DESCRIPTION
distro-info is a symlink to the distro-info command for your distribution. On Debian it links to debian-distro-info and on Ubuntu it links
to ubuntu-distro-info. All options described in this manual page are available in all distro-info commands. All other options, which are
not described here, are distribution specific.
OPTIONS
--date=DATE
date for calculating the version (default: today)
-h, --help
display help message and exit
-a, --all
list all known versions
-d, --devel
latest development version
-s, --stable
latest stable version
--supported
list of all supported stable versions
--unsupported
list of all unsupported stable versions
-c, --codename
print the codename (default)
-r, --release
print the release version
-f, --fullname
print the full name
SEE ALSO
debian-distro-info(1), ubuntu-distro-info(1)
AUTHOR
The script and this manual page was written by Benjamin Drung <bdrung@debian.org>.
distro-info January 2011 DISTRO-INFO(1)