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 a file having datas like that
./a.txt
12344
12345
12346
12347
.....
.....
...
i want to save this datas to another file like that
./b.txt
12344 12345 12346 12347 ... ... ...
i think awk can make this but how? :) waiting for ur help. (3 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)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
Hello.
Following recommendations for one of my threads, this is working perfectly :
#!/bin/bash
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
#!/bin/bash
CNT=$( grep -c -e "some text_1... (4 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)
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT REDHAT
automount2amd
AUTOMOUNT2AMD(8L)AUTOMOUNT2AMD(8L)NAME
automount2amd - converts old Sun automount maps to Amd maps
SYNOPSIS
automount2amd auto.map
DESCRIPTION
automount2amd is used to convert an old Sun automount maps named auto.map to an Amd map.
This perl script will use the following /default entry
type:=nfs;opts:=rw,grpid,nosuid,utimeout=600
If you wish to override that, define the $DEFAULTS environment variable, or modify the script.
If you wish to generate Amd maps using the hostd (host domain) Amd map syntax, then define the environment variable $DOMAIN or modify the
script.
EXAMPLE
Say you have the Sun automount file auto.foo, with these two lines:
home earth:/home
moon -ro,intr server:/proj/images
Running
automount2amd auto.foo > amd.foo
will produce the Amd map amd.foo with this content:
# generated by automount2amd on Sat Aug 14 17:59:32 US/Eastern 1999
/defaults
type:=nfs;opts:=rw,grpid,nosuid,utimeout=600
home host==earth;type:=link;fs:=/home
rhost:=earth;rfs:=/home
moon -addopts:=ro,intr
host==server;type:=link;fs:=/proj/images
rhost:=server;rfs:=/proj/images
BUGS
automount2amd does not understand newer Sun Automount map syntax, those used by autofs.
SEE ALSO conv2amd(8),amd(8).
AUTHORS
Original author Mike Walker <mike@tab00.larc.nasa.gov>. Script modified by Erez Zadok <ezk@cs.columbia.edu>, Department of Computer Sci-
ence, Columbia University, New York, USA.
24 May 1993 AUTOMOUNT2AMD(8L)