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 Everyone,
if my folder "foldera" inside has one file.
so if i do
if ($df =~ /^\./) { next; }
then i will get
###
filea
###
if i want to have
###
..
filea
###
means also display the parent .., how should i modify the perl ~// in my code?
Thanks
---------- Post updated... (6 Replies)
im a new student in programming and im stuck on this question so please please HELP ME. thanks.
the question is this:
enter a command to delete all files that have filenames starting with labtest, except labtest itself (delete all files startign with 'labtest' followed by one or more... (2 Replies)
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (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)
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)
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (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 LINUX
sysadmin
SYSADMIN(1) General Commands Manual SYSADMIN(1)NAME
sysadmin - responsible for everything imaginable that may or may not have to do with the system you're using. Contraction of "system" and
"administrator"
SYNOPSIS
sysadmin [-ab] [-cd] [-ef] etc......
DESCRIPTION
sysadmin takes care of everything, is generally harangued, must be supplied with coffee, chocolate, and alcohol in order to function prop-
erly, cannot be exposed to direct sunlight, and must not be allowed to have a life.
sysadmin is not intended as a user interface routine; other programs provide user-friendly front ends; sysadmin is used by everyone who can
track him [her] down.
With no flags, sysadmin reads its standard input up to an EOF, or a line which sysadmin wishes to parse, and then proceeds to ignore it
entirely and read news all day. When invoked with the -w option, sysadmin reads standard input and responds according to terms of job
description.
OPTIONS -bofh Go into Bastard Operator From Hell mode. This option causes sysadmin to use tools stored in the /usr/lib/bofh directory to parse
the standard input and route user tasks appropriately.
-cd causes sysadmin to become caffeine-deprived, resulting in system slowdowns.
-b causes the sysadmin to function normally while augmenting the standard input with beer(5). Can be used with the -t option as well,
depending upon which version of sysadmin you are running.
-t causes the sysadmin to smoke tobacco, which can result in significant performance improvement, provided you are running the correct
version of sysadmin.
-Cfile Specify an alternate configuration file (sysadmin.cf is the standard).
-dX set debuggin value to X.
-fFullname
Set the full name of the sysadmin.
-Bf Create the sysadmin.cf configuration freeze file.
-lname Sets the name of the "luser" person (that is, originator of a given request). -l can only be used by "trusted" users (who are listed
in sysadmin.cf).
NOTES
The -t option should not be used with a version of sysadmin which is not capable of parsing tobacco input. Though the functionality of
this command may seem similar to the -b option, it should not be confused with that or the related -c option.
25 September 1995 SYSADMIN(1)