01-26-2017
Code tags for code, please.
The extra brackets in your code would prevent it from working.
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How would I put the date within my PS1 command for my shell prompt?
I have it set to:
PS1='$>'
I tried PS1='$>' but that didn't work. (7 Replies)
Discussion started by: kymberm
7 Replies
2. UNIX for Dummies Questions & Answers
Hi
I need to do an add function but it should include the prefixed zeros
For Example
i=00123
j=`expr $i + 1`
The output it shows is 124 but I want the output to be 00124
Could any one help me finding out how to do this
Thanks (16 Replies)
Discussion started by: sivasenthil_k
16 Replies
3. Solaris
Hi all first post here.
quick question what Solaris 10 update level included this utility?
I have a bunch of Sun boxes at varying levels of Solaris 10 some have it some do not.
When I do my install I take the full option for the packages to install on all the systems.
thanks in advance... Mike (4 Replies)
Discussion started by: mike_243us
4 Replies
4. Programming
Hello, I have an error when I include the socket.h linux header and compile with gcc.
In file included from /usr/include/sys/socket.h:40:0,
from test.c:17:
/usr/include/bits/socket.h:217:5: error: expected identifier before numeric constant
In test.c:17:
#include... (4 Replies)
Discussion started by: meltingshell
4 Replies
5. UNIX for Dummies Questions & Answers
hey,
just want to ask how to check this scenario
a="apple banana cherry"
if
egg=0
fi
how do you do the condition?
thanks! (2 Replies)
Discussion started by: h0ujun
2 Replies
6. Shell Programming and Scripting
I need to shred and delete a file after a certain time. Therefore I use
shred -z /path/to/file.txt | rm -rf /path/to/file.txtIt works well, but typing
in that very directory
ls -shiI still see the so called backup-copy lets say file.txt~
When running bleachbit it will disappear thoroughly.... (3 Replies)
Discussion started by: 1in10
3 Replies
LEARN ABOUT REDHAT
svnpath
SVNPATH(1) SVNPATH(1)
NAME
svnpath - output svn url with support for tags and branches
SYNOPSIS
svnpath
svnpath tags
svnpath branches
svnpath trunk
DESCRIPTION
svnpath is intended to be run in a Subversion working copy.
In its simplest usage, svnpath with no parameters outputs the svn url for the repository associated with the working copy.
If a parameter is given, svnpath attempts to instead output the url that would be used for the tags, branches, or trunk. This will only
work if it's run in the top-level directory that is subject to tagging or branching.
For example, if you want to tag what's checked into Subversion as version 1.0, you could use a command like this:
svn cp $(svnpath) $(svnpath tags)/1.0
That's much easier than using svn info to look up the repository url and manually modifying it to derive the url to use for the tag, and
typing in something like this:
svn cp svn+ssh://my.server.example/svn/project/trunk svn+ssh://my.server.example/svn/project/tags/1.0
svnpath uses a simple heuristic to convert between the trunk, tags, and branches paths. It replaces the first occurrence of trunk, tags, or
branches with the name of what you're looking for. This will work ok for most typical Subversion repository layouts.
If you have an atypical layout and it does not work, you can add a ~/.svnpath file. This file is perl code, which can modify the path in
$url. For example, the author uses this file:
#!/usr/bin/perl
# svnpath personal override file
# For d-i I sometimes work from a full d-i tree branch. Remove that from
# the path to get regular tags or branches directories.
$url=~s!d-i/(rc|beta)[0-9]+/!!;
$url=~s!d-i/sarge/!!;
1
LICENSE
GPL version 2 or later
AUTHOR
Joey Hess <joey@kitenet.net>
Debian Utilities 2013-12-23 SVNPATH(1)