Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Dear friends, following is the output of a script from which I want to remove spaces and new-line characters.
Example:-
Line1 abcdefghijklmnopqrstuvwxyz
Line2 mnopqrstuvwxyzabcdefghijkl
Line3 opqrstuvwxyzabcdefdefg
Here in above example, at every starting line there is a “tab” &... (4 Replies)
I have a vim outliner file like this:
Title
title 2
:Testing now
:testing 2
:testing 3
title 3
:testing
:ttt
:ttg
Is there a way to use a script or command to remove... (7 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Hi,
I am on a Solaris8 machine
If someone can help me with adjusting this awk 1 liner (turning it into a real awkscript) to get by this "event not found error"
...or
Present Perl solution code that works for Perl5.8 in the csh shell ...that would be great.
******************
... (3 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
cgsnapshot
CGSNAPSHOT(1) libcgroup Manual CGSNAPSHOT(1)NAME
cgsnapshot - generate the configuration file for given controllers
SYNOPSIS
cgsnapshot [-h] [-s] [-t] [-b file] [-w file] [-f output_file] [controller] [...]
DESCRIPTION
cgsnapshot generates the cgconfig compatible configuration file for the given controllers. If no controller is set, then cgsnapshot shows
all mounted hierarchies. The output is in the same format as the cgconfig.conf configuration file.
-b file
Display only variables from the blacklist. The default location of the blacklist is /etc/cgsnapshot_blacklist.conf. This list con-
tains all variables which should be ignored by the cgsnapshot If the variable is blacklisted, it will not be displayed. If it is
not present on the blacklist, the whitelist is checked.
-h, --help
display this help and exit
-f, --file
Redirect the output to output_file
-s, --silent
Ignore all warnings
-t, --strict
Do not display the variables which are not on the whitelist
-w file
Set the blacklist configuration file. This list contains all variables which should be displayed by cgsnapshot If the variable is
not blacklisted, the whitelist is checked. If the variable is on the whitelist, it is displayed by cgsnapshot If the variable is
not on the whitelist, the variable is displayed and a warning message is produced. By default the whitelist is not used.
The warning message can be omitted using the -s, --silent flag. If the -t, --strict flag is used, the variable which is not on the
whitelist is not displayed.
controller
defines the controller whose hierarchies will be output
FILES
/etc/cgsnapshot_blacklist.conf
default blacklist
/etc/cgsnapshot_whitelist.conf
default whitelist
/etc/cgconfig.conf
default libcgroup configuration file
SEE ALSO
cgconfig.conf (5)
Linux 2010-07-28 CGSNAPSHOT(1)