05-03-2013
You have
s/ERE/replacement
but need to terminate that with another /
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text.
An example of 4 lines in my file is:
1. MatchText_randomNumberOfText moreData ReplaceMe moreData
2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Discussion started by: Crypto
4 Replies
2. Shell Programming and Scripting
I have to add a variable value to an array, something like this:
......
@my_array_name = $value_of_this_variable;
This doesnt seem to work, any ideas why?
Thanks! (4 Replies)
Discussion started by: looza
4 Replies
3. Shell Programming and Scripting
Hi
can anyone suggest me how to write a file containing values,... say
19
20
21
22
..
40
to an array @array = (19, 20, ... 40)
-- Thanks (27 Replies)
Discussion started by: meghana
27 Replies
4. Shell Programming and Scripting
Hello,
I really would appreciate some help with a bash script for some string manipulation on an SQL dump:
I'd like to be able to rename "sites/WHATEVER/files" to "sites/SOMETHINGELSE/files" within the sql dump.
This is quite easy with sed:
sed -e... (1 Reply)
Discussion started by: otrotipo
1 Replies
5. Shell Programming and Scripting
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
Discussion started by: zeekblack
1 Replies
6. Shell Programming and Scripting
Hi,
Is there an easy way to simulate following Perl code in Bash.
if ( grep {$my_value eq $_} @ARGV ){
print "Do Something\n";
} else {
die "Invalid value";
} (0 Replies)
Discussion started by: paragkalra
0 Replies
7. Shell Programming and Scripting
Hi,
I have 2 arrays:
@names=qw(amith veena chaitra);
@files=qw(file.txt file1.txt file3.txt);
There is one to one relationship between names and files.
There needs to be mapping created between names and files.
The output should be like this:
amith --> file.txt
veena --->... (3 Replies)
Discussion started by: vanitham
3 Replies
8. Shell Programming and Scripting
perl -pi -e 's/\x00/\x0d\x0a/g' `grep -l $'GS' filelist`
This isn't working :confused:, it's not pulling the files that contain the regex. Please help me rewrite this :wall:.
Ideally for this to work on 9K of 20K files in the directory, I've tried this but I don't know enough about awk... (7 Replies)
Discussion started by: verge
7 Replies
9. Shell Programming and Scripting
Hi ,
I have been trying to write a perl script to do this job. But i am not able to achieve the desired result. Below is my code.
my $current_value=12345;
my @users=("bob","ben","tom","harry");
open DBLIST,"<","/var/tmp/DBinfo";
my @input = <DBLIST>;
foreach (@users)
{
my... (11 Replies)
Discussion started by: chidori
11 Replies
10. Shell Programming and Scripting
I'm trying to exlude a list of values with perl to process while reading in a file. Is there a way to use the next if with a list?
Example:
@array = qw(val1 val2 val3 val6);
while (<>) {
next if $_ =~ @array; # values I don't want to process here
print; # process the rest here
}... (8 Replies)
Discussion started by: timj123
8 Replies
LEARN ABOUT DEBIAN
xjremote
XJREMOTE(1) Manual Pages XJREMOTE(1)
NAME
xjremote - CLI remote-control to xjadeo
SYNOPSIS
xjremote [-fhPquUvV] [-I <mq-queue-id>]
DESCRIPTION
Xjadeo is a software video player that displays a video-clip in sync with an external time source (MTC, LTC, JACK-transport).
xjremote connects to a instance of Xjadeo and allows a user to tweak the running configuration.
If it can not connect, xjremote will start a new instance of Xjadeo and open a connection to it unless the -f is given.
OPTIONS
-f, --nofork
disable automatic startup of Xjadeo. Instead xjremote will terminate if it can not connect to a running Xjadeo.
-h, --help
Prints usage help and exits.
-I <ipc-id>, --id <ipc-id>
specify message-queue identifier.
-P, -P, --noping
Skip checking for Xjadeo life signs (ping).
-q, --quiet, --silent
Suppresses normal output messages.
-Q
ignored - xjremote can be used as a drop in replacement for xjadeo -Q.
-R
ignored - xjremote can be used as a drop in replacement for xjadeo -R.
-u, --unlink
remove existing queues. Unless combined with -f this will launch always a new Xjadeo instance after unlinking the queues. Note: active
connections are not affected.
-U, --unlinkonly
remove existing message queues and exit. If no Xjadeo instance is running this is equivalent to -u -f.
-v, --verbose
Print additional information.
-V, --version
Print version information end exit.
-W <rpc-id>
ignored - xjremote can be used as a drop in replacement for xjadeo -W ...
ENVIRONMENT
If the XJADEO variable is set, xjremote will assume that it holds the path to the Xjadeo executable.
NOTE
Apart from Standard-I/O, Xjadeo can either use POSIX real-time message-queues (MQ) or System-V IPC communication. The decision is made when
compiling it. Basically GNU/Linux uses MQ (but could use IPC as well). OSX only supports IPC and Windows is limited to standard-I/O only.
SEE ALSO
xjadeo(1)
qjadeo(1)
AUTHORS
Robin Gareus <robin@gareus.org>
linuxaudio.org
Luis Garrido <luisgarrido@users.sourceforge.net>
luisgarrido.users.sourceforge.net
COPYRIGHT
Copyright (C) 2005, 2006, 2007, 2009, 2010, 2011 Robin Gareus, Luis Garrido
http://xjadeo.sf.net 0.6 09/26/2011 XJREMOTE(1)