Having a terrible problem with quotes/single quotes!
Hello. I'm trying to write a bash script that uses GNU screen and have hit a brick wall that has cost me many hours... (I'm sure it has something to do with quoting/globbing, which is why I post it here)
I can make a script that does the following just fine:
test.sh:
A simple `screen -r blah` will show it worked well! I have a pretty hardstatus line that shows the hostname, windownames, and dates.
Now I want to wrap the screen commands into a Launch command...
test2.sh:
if you do a `screen -r blah`now...
Most everything worked - it created the "blah" screen session, and even created the "dummy" and "dummy 2" windows.. But look at the status line, its just a blank white bar!
Hi all...
This is probably the simplest question but its driving me round the bend :-(
does anyone know how to store a single quote in a variable. Im using cygwin bash
for example
single_qoute = " ' "
echo single_quote
dosnt work :-( it is absolutely baffling me!
The reason why... (4 Replies)
I'm having trouble manipulating a string that contains single quotes (') in it. I'm writing a ksh script to parse in a few queries from a config file, such as this:
findbug \(\(Project 'in' "Deployment,HDRCI,LHS,LSS,WUCI" '&&' Status 'in' "N" '&&' New_on 'lessthan' "070107" \)\) '&&' \(Class... (9 Replies)
I'm not very familiar with the ssh command. When I tried to set a variable and then echo its value on a remote machine via ssh, I found a problem. For example,
$ ITSME=itsme
$ ssh xxx.xxxx.xxx.xxx "ITSME=itsyou; echo $ITSME"
itsme
$ ssh xxx.xxxx.xxx.xxx 'ITSME=itsyou; echo $ITSME'
itsyou
$... (3 Replies)
Hi,
I am trying to create a script which validates the incoming source files. The script has File name Pattern as Argument. The First part of the script validates if there are any files available
if
then
echo "\n Files are available to process \n"
else
echo "\n File does not... (9 Replies)
Hi guys, I have a sed line in double quotes which works fine, but I want it to be in single quotes
here is the sed line
sed "/abc_def/s/\'.*\'/\'\${abc_def}\'/"
can some one give the equivalent to the above script in single quotes
Thanks a ton (5 Replies)
Unix superusers,
I am new to unix but would like to learn more about grep. I am very familiar with regular expressions as i have used them for searching text files in windows based text editors. Since I am not very familiar with Unix, I dont understand when one should use GREP with the... (2 Replies)
Hi I want to replace single quote with two single quotes in a perl string.
If the string is <It's Simpson's book> It should become <It''s Simpson''s book> (3 Replies)
Hi,
Trying to change the prompt. I have the following code.
export PS1='
<${USER}@`hostname -s`>$ '
The hostname is not displayed
<abc@`hostname -s`>$ uname -a
AIX xyz 1 6 00F736154C00
<adcwl4h@`hostname -s`>$
If I use double quotes, then the hostname is printed properly but... (3 Replies)
Discussion started by: bobbygsk
3 Replies
LEARN ABOUT DEBIAN
gluster
Gluster(8) Gluster Inc. Gluster(8)NAME
gluster - Gluster Console Manager (command line utility)
SYNOPSIS
gluster
To run the program and display gluster prompt:
gluster
(or)
To specify a command directly:
gluster [commands] [options]
DESCRIPTION
The Gluster Console Manager is a command line utility for elastic volume management. You can run the gluster command on any export server.
The command enables administrators to perform cloud operations, such as creating, expanding, shrinking, rebalancing, and migrating volumes
without needing to schedule server downtime.
COMMANDS
Volume Commands
volume info [all|<VOLNAME>]
Display information about all volumes, or the specified volume.
volume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT>] [transport <tcp|rdma|tcp,rdma>] <NEW-BRICK> ...
Create a new volume of the specified type using the specified bricks and transport type (the default transport type is tcp). To
create a volume with both transports (tcp and rdma), give 'transport tcp,rdma' as an option.
volume delete <VOLNAME>
Delete the specified volume.
volume start <VOLNAME>
Start the specified volume.
volume stop <VOLNAME> [force]
Stop the specified volume.
volume rename <VOLNAME> <NEW-VOLNAME>
Rename the specified volume.
volume set <VOLNAME> <OPTION> <PARAMETER> [<OPTION> <PARAMETER>] ...
Set the volume options.
volume help
Display help for the volume command.
Brick Commands
volume add-brick <VOLNAME> <NEW-BRICK> ...
Add the specified brick to the specified volume.
volume remove-brick <VOLNAME> <BRICK> ...
Remove the specified brick from the specified volume.
Note: If you remove the brick, the data stored in that brick will not be available. You can migrate data from one brick to another
using replace-brick option.
volume rebalance-brick <VOLNAME>(<BRICK> <NEW-BRICK>) start
Start rebalancing the specified volume.
volume rebalance <VOLNAME> stop
Stop rebalancing the specified volume.
volume rebalance <VOLNAME> status
Display the rebalance status of the specified volume.
volume replace-brick <VOLNAME> (<BRICK> <NEW-BRICK>) start|pause|abort|status|commit
Replace the specified brick.
Log Commands
volume log filename <VOLNAME> [BRICK] <DIRECTORY>
Set the log directory for the corresponding volume/brick.
volume log locate <VOLNAME> [BRICK]
Locate the log file for corresponding volume/brick.
volume log rotate <VOLNAME> [BRICK]
Rotate the log file for corresponding volume/brick.
Peer Commands
peer probe <HOSTNAME>
Probe the specified peer.
peer detach <HOSTNAME>
Detach the specified peer.
peer status
Display the status of peers.
peer help
Display help for the peer command.
Other Commands
help Display the command options.
quit Exit the gluster command line interface.
FILES
/etc/glusterd/*
SEE ALSO fusermount(1), mount.glusterfs(8), glusterfs(8), glusterd(8)COPYRIGHT
Copyright(c) 2006-2011 Gluster, Inc. <http://www.gluster.com>
07 March 2011 Gluster command line utility Gluster(8)