07-31-2006
What does this syntax mean...
OK, the title is a little vague, but basically i was gonig through some files and ran into some strange syntax... heres what it looks like:
... 1&>~/<file extension>
where ... is a chain of commands (the 1&>~ is part of the arguments) and the file extension is just a pointer to a file somewhere on the computer. Whats this mean?
Thanks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
export check=$(expandname $(dirname $(which $0))) (2 Replies)
Discussion started by: chandhar
2 Replies
2. Shell Programming and Scripting
can anyone explain the code for me... i am new to shell programming
while getopts ":S:D:U:" OPTION "$@"
do
case $OPTION in
S) SRVR=$OPTARG;;
D) DB="$OPTARG"; USEDB="use $OPTARG";;
U) UID=$OPTARG;;
:) MISSINGOPTARG="$MISSINGOPTARG -$OPTARG";;
?) if
then
... (2 Replies)
Discussion started by: chandhar
2 Replies
3. UNIX for Dummies Questions & Answers
I am trying to list output in columns in csh. What would be the syntax for this shell if in ksh it is: ls -d !(*SNMP*) ? (0 Replies)
Discussion started by: charlie11k
0 Replies
4. Shell Programming and Scripting
IN the book below example showed
find /home/tolstoy -type d -print | Find all directories
sed 's;/home/tolstoy/;/home/lt/;' | Change name, note use of semicolon delimiter
while read newdir Read new directory name
do
mkdir $newdir ... (7 Replies)
Discussion started by: convenientstore
7 Replies
5. Shell Programming and Scripting
Hi All,
What does this mean
${#var} (2 Replies)
Discussion started by: krishna_gnv
2 Replies
6. Shell Programming and Scripting
I know that I want to entirely replace line 3 in my file filename.txt. I have tried all sorts of variations of
sed 3,3,c\replacement stuff\ filename.txt with no success.
about the only thing that causes any reaction is
sed 3,3c\\ filename.txt
but it just prints out the whole file.
... (13 Replies)
Discussion started by: SusanDAC
13 Replies
7. UNIX for Dummies Questions & Answers
Hi everyone,
I got some code here that I've been working on, but I've gotten stuck. I cant figure out what is wrong with the syntax.
sub cksum{
my $uint32_t = \buffer;
my $word_count;
my $bias;
(
#uint32_t checksum = $bias
$word_count = $bias
while ($word_count>=0)
... (2 Replies)
Discussion started by: TeamUSA
2 Replies
8. Shell Programming and Scripting
hi!
pls help me :)
cd folder
for f in *; do
...
done
this circle takes all files from folder1
i need only .pdf files
but it may be like a.pdf or a.PDF
what syntax must i use?
smth like it:
cd folder
for f in *.(pdf|PDF); do (2 Replies)
Discussion started by: optik77
2 Replies
9. Shell Programming and Scripting
Hi all,
I'm trying to decrypt a GnuPG file but not having much luck. I'm new to using it and have tried 4 different ways to do it but nothing works. Here are examples of the attempts I have made:
gpg -o ./file_name.tar.Z --passphrase-fd 0 ./file_name.tar.Z.gpg 0<./password.txt
cat... (5 Replies)
Discussion started by: Korn0474
5 Replies
10. UNIX for Dummies Questions & Answers
Query with perl syntax
Aim: is to change a perl script to use a new file
I was required to replace
- entries \"$entries\"
with
-lib <full_path_to_filename>
So in the code detector.pm
sub rundetector
{
my $class = shift;
mkdir($resultDirectory);
my... (3 Replies)
Discussion started by: sa@@
3 Replies
LEARN ABOUT DEBIAN
hgignore
HGIGNORE(5) Mercurial Manual HGIGNORE(5)
NAME
hgignore - syntax for Mercurial ignore files
SYNOPSIS
The Mercurial system uses a file called .hgignore in the root directory of a repository to control its behavior when it searches for files
that it is not currently tracking.
DESCRIPTION
The working directory of a Mercurial repository will often contain files that should not be tracked by Mercurial. These include backup
files created by editors and build products created by compilers. These files can be ignored by listing them in a .hgignore file in the
root of the working directory. The .hgignore file must be created manually. It is typically put under version control, so that the settings
will propagate to other repositories with push and pull.
An untracked file is ignored if its path relative to the repository root directory, or any prefix path of that path, is matched against any
pattern in .hgignore.
For example, say we have an untracked file, file.c, at a/b/file.c inside our repository. Mercurial will ignore file.c if any pattern in
.hgignore matches a/b/file.c, a/b or a.
In addition, a Mercurial configuration file can reference a set of per-user or global ignore files. See the ignore configuration key on the
[ui] section of hg help config for details of how to configure these files.
To control Mercurial's handling of files that it manages, many commands support the -I and -X options; see hg help <command> and hg help
patterns for details.
SYNTAX
An ignore file is a plain text file consisting of a list of patterns, with one pattern per line. Empty lines are skipped. The # character
is treated as a comment character, and the character is treated as an escape character.
Mercurial supports several pattern syntaxes. The default syntax used is Python/Perl-style regular expressions.
To change the syntax used, use a line of the following form:
syntax: NAME
where NAME is one of the following:
regexp
Regular expression, Python/Perl syntax.
glob
Shell-style glob.
The chosen syntax stays in effect when parsing all patterns that follow, until another syntax is selected.
Neither glob nor regexp patterns are rooted. A glob-syntax pattern of the form *.c will match a file ending in .c in any directory, and a
regexp pattern of the form .c$ will do the same. To root a regexp pattern, start it with ^.
Note Patterns specified in other than .hgignore are always rooted. Please see hg help patterns for details.
EXAMPLE
Here is an example ignore file.
# use glob syntax.
syntax: glob
*.elc
*.pyc
*~
# switch to regexp syntax.
syntax: regexp
^.pc/
AUTHOR
Vadim Gelfer <vadim.gelfer@gmail.com>
Mercurial was written by Matt Mackall <mpm@selenic.com>.
SEE ALSO
hg(1), hgrc(5)
COPYING
This manual page is copyright 2006 Vadim Gelfer. Mercurial is copyright 2005-2012 Matt Mackall. Free use of this software is granted
under the terms of the GNU General Public License version 2 or any later version.
AUTHOR
Vadim Gelfer <vadim.gelfer@gmail.com>
Organization: Mercurial
HGIGNORE(5)