Hello,
I have a list in .txt format of email addresses and I need to extract just a specific domain ...
The list format is like:
"123456";"user@domain.com";"email";"john";"name"
"123457";"user2@domain.com";"email";"john";"name"
"123458";"user3@domain.com";"email";"john";"name"... (7 Replies)
Hi all!
I'm using CentOS 5.2 with KDE.
Is it possible to get a processname/cmd of a terminated process (= PID not present with PS-command) ?
Are the processnames/scriptnames logged somewhere? (I did not find them in /var/log/messages) (5 Replies)
Hello,
I am trying to use grep to locate multiple uses of the same word in the same line. The word has to be 3+ char, upper or lower or both.
I tried this code
<code>
grep \({3,}\)*\1 i*
</code>
and i turned out zero results. Any ideas?
____________________________________________... (5 Replies)
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
my file contains
xxabced.p dlksfad;
dflsdkjflkds flksdjflkdioewf
erfsdlkfjsdla;
dlkfjsd;lfkj msgdadf.p dslk kdjflksdjfl;asdfasdfjkljl
fdsf;jd ppuskldf.p
i want the output is
xxabced.p
msgdadf.p
ppuskldf.p
Can any one give the command? (1 Reply)
Hi,
I need to carry out the back up of the data if exists...(file size not equal to zero)
i tried in this way but it is not successful....where am making the mistakes? and if possible can i use case syntax in place of "if"
#!/bin/ksh
filename=`TZ=CST+24 date +%Y%m%d`
ZERO=0... (3 Replies)
Use and complete the template provided. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have to find all the files where the function sequentialInsert is called and the directory is ~cs252/Assignments/commandsAsst/project
2.... (2 Replies)
Hello,
I have a question regarding the usage statement of a script.
I have 2 parameters "--pto" and "--pto_list". To start the script I will need one of them. Both together are not possible.
How this would be printed out within a usage statement?
My suggestion would be:
Usage:... (4 Replies)
Discussion started by: API
4 Replies
LEARN ABOUT SUSE
git-sh-setup
GIT-SH-SETUP(1) Git Manual GIT-SH-SETUP(1)NAME
git-sh-setup - Common git shell script setup code
SYNOPSIS
. "$(git --exec-path)/git-sh-setup"
DESCRIPTION
This is not a command the end user would want to run. Ever. This documentation is meant for people who are studying the Porcelain-ish
scripts and/or are writing new ones.
The git sh-setup scriptlet is designed to be sourced (using .) by other shell scripts to set up some variables pointing at the normal git
directories and a few helper shell functions.
Before sourcing it, your script should set up a few variables; USAGE (and LONG_USAGE, if any) is used to define message given by usage()
shell function. SUBDIRECTORY_OK can be set if the script can run from a subdirectory of the working tree (some commands do not).
The scriptlet sets GIT_DIR and GIT_OBJECT_DIRECTORY shell variables, but does not export them to the environment.
FUNCTIONS
die
exit after emitting the supplied error message to the standard error stream.
usage
die with the usage message.
set_reflog_action
set the message that will be recorded to describe the end-user action in the reflog, when the script updates a ref.
git_editor
runs an editor of user's choice (GIT_EDITOR, core.editor, VISUAL or EDITOR) on a given file, but error out if no editor is specified
and the terminal is dumb.
is_bare_repository
outputs true or false to the standard output stream to indicate if the repository is a bare repository (i.e. without an associated
working tree).
cd_to_toplevel
runs chdir to the toplevel of the working tree.
require_work_tree
checks if the repository is a bare repository, and dies if so. Used by scripts that require working tree (e.g. checkout).
get_author_ident_from_commit
outputs code for use with eval to set the GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL and GIT_AUTHOR_DATE variables for a given commit.
AUTHOR
Written by Linus Torvalds <torvalds@osdl.org[1]>
DOCUMENTATION
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org[2]>.
GIT
Part of the git(1) suite
NOTES
1. torvalds@osdl.org
mailto:torvalds@osdl.org
2. git@vger.kernel.org
mailto:git@vger.kernel.org
Git 1.7.1 07/05/2010 GIT-SH-SETUP(1)