Hi All,
Very need help about format syntax on solaris 10.
I have done install Solaris 10 OS on sun fire v245 but currently i have a problem to use "format" command to display partition info for my hard drive.
i cannot enter the format menu, below is captured display :
# format
Searching... (7 Replies)
Hi all,
Just subscribed to this forum. Not a regular user of Unix.:)
I did the following:
We have a directory structure /a/b/c5/
Where c5 is the only directory inside b.
export ANOOP=/a/b/c*/
echo $ANOOP=/a/b/c5/
I have to create a symbolic link to anoop.txt in the directory... (2 Replies)
Hiii... There...
I am making a Script in which I am taking the value of a variable "var"
through key board.
But I want, if no values are supplied for "var" for more than 5 seconds then script shuld automatically exit.Script is as follow :
#cat abc
#!/bin/bash
echo "Enter Your Choice : "... (4 Replies)
I am looking at installing PiKdev which needs libqt3-mt and kdelibs4-dev. The installed package is qt-r1008952-i486-1 which claims to be a gui toolkit. find / -name "*libqt*" yields nothing with mt just a lot of support, compatible, and access widgets. Normally I would consider this a no go but... (0 Replies)
Hi,
I am a little bit confusing of using find command.
Actually, I am planning to delete the files whatever the files are existing in the day before yesterday. So, I am writing the command like this.
find . -name "*.txt" -ctime -2 { here I am confusing, if I will use +2 or +1 also I am... (5 Replies)
Sed garbled error. Cannot determine why the sed command to insert a line at the beginning of a file will not work on declared variables.
outfile='DAR.V2.2012115.1.CSV'
testfile='totality_request.sql'
header_prefix='DATA FILE'
no_ext_file=`echo $outfile |sed 's/\(.*\)..../\1/'`
... (6 Replies)
I'm trying to extract a subject from a mail message but my subject example has 2 lines. How can I manage to extract it and write a string at the end of it?
Consider this example:
From: test@domain.com
Subject: Re: U =?ISO-8859-1?Q?qu=EA=3F!=3F!=3F!!_wtff_=E7=E3o_=ED=F3?=
... (6 Replies)
Hi,
I ran a script named cat item
when I searched for this script using command PS
I get two process . I don't understand this. Also this script has run for 15 minutes but the time is showing as 0:00:confused::confused:
ps -ef | grep cat_item
catmgr 4508 4486 0 05:10:29 ? 0:00... (5 Replies)
1. increase file space
first, double space a file:
awk '1;{print ""}'
I probably can understand it:print a blank line every time.But when I read triple space a file I am confused:
awk '1;{print "\n"}'
doesn't it meaning print a blank line every time too?
2. number each line of file, but... (6 Replies)
Discussion started by: hhdzhu
6 Replies
LEARN ABOUT ULTRIX
systemd-escape
SYSTEMD-ESCAPE(1) systemd-escape SYSTEMD-ESCAPE(1)NAME
systemd-escape - Escape strings for usage in systemd unit names
SYNOPSIS
systemd-escape [OPTIONS...] [STRING...]
DESCRIPTION
systemd-escape may be used to escape strings for inclusion in systemd unit names. The command may be used to escape and to undo escaping of
strings.
The command takes any number of strings on the command line, and will process them individually, one after another. It will output them
separated by spaces to stdout.
By default, this command will escape the strings passed, unless --unescape is passed which results in the inverse operation being applied.
If --mangle is given, a special mode of escaping is applied instead, which assumes the string is already escaped but will escape everything
that appears obviously non-escaped.
For details on the escaping and unescaping algorithms see the relevant section in systemd.unit(5).
OPTIONS
The following options are understood:
--suffix=
Appends the specified unit type suffix to the escaped string. Takes one of the unit types supported by systemd, such as "service" or
"mount". May not be used in conjunction with --template=, --unescape or --mangle.
--template=
Inserts the escaped strings in a unit name template. Takes a unit name template such as foobar@.service. May not be used in conjunction
with --suffix=, --unescape or --mangle.
--path, -p
When escaping or unescaping a string, assume it refers to a file system path. This eliminates leading, trailing or duplicate "/"
characters and rejects "." and ".." path components. This is particularly useful for generating strings suitable for unescaping with
the "%f" specifier in unit files, see systemd.unit(5).
--unescape
Instead of escaping the specified strings, undo the escaping, reversing the operation. May not be used in conjunction with --suffix=,
--template= or --mangle.
--mangle
Like --escape, but only escape characters that are obviously not escaped yet, and possibly automatically append an appropriate unit
type suffix to the string. May not be used in conjunction with --suffix=, --template= or --unescape.
-h, --help
Print a short help text and exit.
--version
Print a short version string and exit.
EXAMPLES
To escape a single string:
$ systemd-escape 'Hallochen, Meister'
Hallxc3xb6chenx2cx20Meister
To undo escaping on a single string:
$ systemd-escape -u 'Hallxc3xb6chenx2cx20Meister'
Hallochen, Meister
To generate the mount unit for a path:
$ systemd-escape -p --suffix=mount "/tmp//waldi/foobar/"
tmp-waldi-foobar.mount
To generate instance names of three strings:
$ systemd-escape --template=systemd-nspawn@.service 'My Container 1' 'containerb' 'container/III'
systemd-nspawn@Myx20Containerx201.service systemd-nspawn@containerb.service systemd-nspawn@container-III.service
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
SEE ALSO systemd(1), systemd.unit(5), systemctl(1)systemd 237SYSTEMD-ESCAPE(1)