09-27-2011
Oh okay.... I see the point.... Thnx so much!!!
BR,
Blue
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have to check whether an argument say $ARGV is not null in an if operator. Please let me know the operator. It would be great if you write a psuedo code.
Thanks in advance
Ammu (4 Replies)
Discussion started by: ammu
4 Replies
2. UNIX for Dummies Questions & Answers
i want to redirect output of one command as the command line argument of another script
for example, say i would run this command:
find . -xdev -type f -size +4096 -exec ls -al {} \;
i wan to be able to do something like:
echo +4096 | find . -xdev -type f -size ****** -exec... (3 Replies)
Discussion started by: IMTheNachoMan
3 Replies
3. UNIX for Dummies Questions & Answers
I'm having problems with bash scripts. If a bash script is called with no arguments, I always get "PHIST=!" as the first argument (i.e. this is what $1 equals). Why? Where does this come from, and how can I fix it? Nothing in the bash man pages refer to this mysterious default argument. (2 Replies)
Discussion started by: sszd
2 Replies
4. Shell Programming and Scripting
I have one working awk command line. Which taking data from the “J1202523.TXT” file and generating the “brazil.dat” file. PFB code.
awk '{ DUNS = substr($0,0,9);if ( substr($0,14,3) == "089" ) print DUNS }' J1202523.TXT > Brazil.dat
But now I want to pass two parameter as a command line argument... (4 Replies)
Discussion started by: humaemo
4 Replies
5. Shell Programming and Scripting
i suspect the issue is with the IFS part. I have a script that reads a file. the problem here is that, when i run the script, it outputs a bunch of numbers. i know what these numbers are, but i dont understand why they're being sent to the screen.
as you can see below, everything should be... (5 Replies)
Discussion started by: SkySmart
5 Replies
6. Shell Programming and Scripting
I have a bash script where I pass an argument
./chris.bash "\argv Test"
I want to detect if the user supplied \argv at the start of the argument (3 Replies)
Discussion started by: kristinu
3 Replies
7. Shell Programming and Scripting
I need to write a shell script, when I run that script I should pass those arguments if not, then script should not run and pass the error message like
invalid option - - should pass the argument.
and Exit from the script
https://www.unix.com/images/misc/progress.gif (1 Reply)
Discussion started by: Nsharma3006
1 Replies
8. UNIX for Dummies Questions & Answers
I need to write a shell script, when I run that script I should pass those arguments if not, then script should not run and pass the error message like
invalid option - - should pass the argument.
and Exit from the script (8 Replies)
Discussion started by: Nsharma3006
8 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to make a bash script that if a null value is returned then to output the value 0.
I would like a script to search the 'top' tree and return the CPU value of a process, however if the process is not running for it to return 0 or another identifier.
top -b -n1 | awk '/... (4 Replies)
Discussion started by: Goomie
4 Replies
10. UNIX for Beginners Questions & Answers
I pass an argument to bash as run. The first command in green executes as expected, however the second in blue fails as the $run does not expand. I tried to escape the variable with \ thinking the quotes were making the literal translation and also "${run}" but both did not work to expand the... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT CENTOS
function::ansi_set_color2
FUNCTION::ANSI_SET_C(3stap) Utility functions for using an FUNCTION::ANSI_SET_C(3stap)
NAME
function::ansi_set_color2 - Set the ansi Select Graphic Rendition mode.
SYNOPSIS
ansi_set_color2(fg:long,bg:long)
ARGUMENTS
fg
Foreground color to set.
bg
Background color to set.
DESCRIPTION
Sends ansi code for Select Graphic Rendition mode for the given forground color, Black(30), Blue(34), Green(32), Cyan(36), Red(31),
Purple(35), Brown(33), Light Gray(37) and the given background color, Black(40), Red(41), Green(42), Yellow(43), Blue(44), Magenta(45), Cyan(46), White(47).
SystemTap Tapset Reference June 2014 FUNCTION::ANSI_SET_C(3stap)