Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
How can I grep exactly a string that has .,/ characters using grep?
Example: I want to grep ONLY string1 and not string1.more or string1.more.evenmore
#lsauth ALL|grep 'string1'
All output:
string1 <--- This is the only I want.
string1.more
string1.evenmore.
more.string1... (4 Replies)
Hi,
I have written a shell script which is a combination of 5 scripts into one.
We have a Record Claim indicator in the scpt ($rc) with which we can come to an conclusion if the script failed to load the data or if the data loaded successfully.
Can any one please help me as to how to... (16 Replies)
I'm working on a script to make backup of various folder located on various host using different OS.
I got a strange behaviour because the script donět process all lines of a configuration file, the script execute only one loop even the input file have 6 lines:
This is the script:
#!/bin/bash... (4 Replies)
This has been bothering me for 3 days.
$> hostname
cepsun64amd
And I just want "cepsun",
I would normally do h=`hostname`; ${h%%64*}
But I am looking for a one-liner just for my own knowledge, because if there is a way to do this, I should know it by now.
Anyway, so is this... (2 Replies)
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Hi All,
I have a file with name
Is there a LINUX command that will help me to output the word after the 9th Underscore(_).
ie the output should be DLY in this case.
Can anybody pls help me.
Thanks much in advance,
Freddie (4 Replies)
below is the output xml string from some other command and i will be parsing it using awk
cat /tmp/alerts.xml
<Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place.
What I need
The following command is placed at the prompt:
TICLI... (4 Replies)
Discussion started by: jbrass
4 Replies
LEARN ABOUT SUSE
cnf
COMMAND-NOT-FOUND(1) http://en.opensuse.org/Sco COMMAND-NOT-FOUND(1)NAME
command-not-found - A command-not-found handler
SYNOPSIS
command-not-found {binary_name} {repository}
ARGUMENTS
The following arguments are required:
binary_name
The name of binary you are looking for.
repository
The name of repository for search. For most cases, use zypp
DESCRIPTION
command-not-found handler is designed to tell users which package contains a missing command.
The handler is integrated to bash(1) and zsh(1) shells and is not necessary to call it directly. Just type a name of the command in your
favourite shell and you'll get a result.
If you consider c-n-f handler useless, just add unset command_not_found_handle to your profile or remove the command-not-found package.
Handler doesn't call the command-not-found binary directly, it only prints info about it. If you want to invoke it automatically, just add
export COMMAND_NOT_FOUND_AUTO=1 to your bash profile.
EXAMPLE : NORMAL USAGE
For example you want to try blender, because you have heard that is an amazing program. So just type blender in shell:
$ blender
You get the following output:
The program 'blender' can be found in the following package:
* blender [ path: /usr/bin/blender, repository: zypp (openSUSE 11.1-0) ]
Try installing with:
sudo zypper install blender
bash: blender: command not found
SEE ALSO scout(1)AUTHOR
Pavol Rusnak <stick@gk2.sk>
Developer
http://gitorious.org/opensus 08/07/2009 COMMAND-NOT-FOUND(1)