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 experts
I want your help to change the file format to my wanted version, please give me a hand thanks
$cat file
install pass
make os pass
make build kernel failed
usb storage pass
chane to
| *install* | *make os* | *make build kernel* | *usb storage* |
| pass | pass... (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)
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)
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)
Discussion started by: timmywong
8 Replies
8. Post Here to Contact Site Administrators and Moderators
Majority of the questions are pertaining file/string parsing w.r.t
sed
or
awk
It would be nice to have these two as their own sub category under shell-programming-scripting which can avoid lot of duplicate posts. (1 Reply)
Hi Experts,
I have a string with colon delimited, want 2nd colon to be changed to a pipe.
data:
101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:
I am trying with sed, but can change only 1 occurance:
echo "101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:" | sed 's/:/|/2'... (5 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
add_members
ADD_MEMBERS(8) System Manager's Manual ADD_MEMBERS(8)NAME
add_members - Add members to a Mailman mailing list from the command line.
SYNOPSIS
add_members [-r <file>] [-d <file>] [-y <y|n>] [-w <y|n>] [-h] listname
DESCRIPTION
Add members from a file to a mailman list. Listname is the name of the Mailman list you are adding members to. It must already exist.
OPTIONS -r file, --regular-members-file=file
A file containing addresses of the members to be added, one address per line. This list of people become non-digest members. If
file is `-', read addresses from stdin. Note that -n/--non-digest-members-file are deprecated synonyms for this option.
-d file, --digest-members-file=file
Similar to above, but these people become digest members.
-a [y|n], --admin-notify=[y|n]
Set whether or not to send the list administrators a notification on the success/failure of these subscriptions, overriding whatever
the list's `admin_notify_mchanges' setting is.
-w [y|n], --welcome-msg=[y|n]
Set whether or not to send the list members a welcome message, overriding whatever the list's `send_welcome_msg' setting is.
-h, --help
Print a help message and exit.
NOTES
You must supply at least one of -r and -d options. At most one of the files can be `-'.
AUTHOR
Author of Mailman is the Mailman Cabal, see http://www.list.org/ for information. This manpage is written by Tollef Fog Heen
<tfheen@debian.org> for Debian, but may be used by others.
SEE ALSO
Mailman documentation on http://www.list.org/ and in /usr/share/doc/mailman.
2006-08-09 ADD_MEMBERS(8)