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)
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)
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 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)
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Hi All,
I have 2 pipe delimited files viz., file_old and file_new. I'm trying to compare these 2 files, and extract all the different rows between them into a new_file.
comm -3 < sort file_old < sort file_new > new_file
I am getting the below error:
-ksh: sort: cannot open
But if I do... (7 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
yasat
YASAT(8) YASAT 526 YASAT(8)NAME
YASAT - simple stupid audit tool
SYNOPSIS
yasat [--standard(-s)] [--list(-l)] [--debug(-d)] [--help(-h)] [--html(-H)] [--html-output PATH] [--advice-lang LANG] [--full-scan(-f)]
[--plugins-dir(-P) PATH] [--nopause(-a)] [--plugin(-1) PATH] [--Plugin(-p) NAME] [--print-level X] [--check-update]
DESCRIPTION
YASAT (Yet Another Stupid Audit Tool) is a simple stupid audit tool. Its goal is to be as simple as possible with minimum binary dependen-
cies (only sed, grep and cut) Second goal is to document each test with maximum information and links to official documentation. It do
many tests for checking security configuration issue or others good practice.
It checks many software configurations like: Apache, Bind DNS, CUPS, PHP, kernel configuration, mysql, network configuration, openvpn,
Packages update, samba, snmpd, squid, tomcat, user accounting, vsftpd, xinetd,
OPTIONS --standard (or -a)
YASAT will performs a standard check of the system, printing out the results of each test to stdout. A log is also created in
~/.yasat/yasat.result by default
--list (or -l)
List all plugins available
--html (or -H)
YASAT will export results in html (default to ~/yasat/yasat.html)
--html-output PATH
With -H, this option permit to change the file where to store html output.
--advice-lang LANG
By default, YASAT print message in english (EN), you can change the displayed lang with this option. LANG is the 2letter digit of
the lang you want. For the moment only EN is supported.
--full-scan (or -f)
YASAT will do extra (long) tests (lots of find).
--plugins-dir PATH (or -P)
Set the path where YASAT can find plugins to use. (default is ./plugins )
--nopause (or -a)
By default, YASAT made a pause after each plugin. For automatize tests you can use this.
--plugin PATH (or -1)
YASAT will just use the plugin pointed by PATH (ex: yasat -1 kernel)
--print-level x (or -1)
YASAT will print infos equal or above the level X (All = 0 (default), infos = 1 warnings(orange) = 2, errors(red) = 3
--skip TEST
A comma separated list of tests to skip without the .test (ex: --skip nfs,ntp). See yasat --list for all tests.
--check-update
Check if an update of YASAT exists
--send-support
Like --check-update, but it will send also as parameter your OS version for statistics. In the future, perhaps also a sort of
send_bugs.
LICENSING
YASAT is licensed under the GPL v3 license and under development by LABBE Corentin.
CONTACT INFORMATION
All contacts informations could be found at http://yasat.sourceforge.net/
526 21 May 2012 YASAT(8)