To do this task is not trivial in CMD.EXE, I don't know about PowerShell.
(Boy oh boy, the last time I did a '.BAT' file was in 2013 in AudioScope.sh.)
Here is the method used in CMD.EXE translated to UNIX.
Inside the code are the two main batchfile lines to do the task from decimal to character.
Result of the demo, OSX 10.14.3, default bash terminal calling 'dash'.
(I have actually used the RC method for peeking memory on the AMIGA in Python.)
Have fun...
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)
(it seems that this post is best put here, where shell programming people use "iconv" and "file" all the time. it was posted in the Linux Application and got no replies)
Dear there, I tried to use iconv to convert myfile.csv to ASCII and failed. Any ideas? myfile.csv contains only ASCII... (2 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)
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 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 DEBIAN
ibdm-topo-file
IBDM-TOPO-FILE(1) IB DATA MODEL PACKAGE IBDM-TOPO-FILE(1)NAME
ibdm-topo-file - 1IBDM Topology File
DESCRIPTION
The topology file describes the IB connectivity and systems included in the network. It serves two purposes:
1. Support for arbitrary system names to be later used in every report that IBDM generates.
2. Connectivity verification: The specified network topology is verified against the discovered one. Mismatch errors resulting from missing
cables and/or wrong connections are reported by IBADM.
The topology file is composed "system" sections. Each such section describes the connectivity of one system to other systems in the
network. The first line of each section is a declaration of the system composed of a system-type, its system-name section, and optional
configuration details. The lines to follow until the next empty line describe the connections between this system ports to the other
systems. The following is a formal definition of a system section syntax.
An example is listed afterwards.
SYSTEM-TYPE SYSTEM-NAME [CFG: <b1>=<modifier>, [<b2>=<modifier>]...]
LOCAL-PORT-PANEL-NAME -> REM-SYS-TYPE REM-SYS-NAME REM-PORT-PANEL-NAME
LOCAL-PORT-PANEL-NAME -> REM-SYS-TYPE REM-SYS-NAME REM-PORT-PANEL-NAME
LOCAL-PORT-PANEL-NAME -> REM-SYS-TYPE REM-SYS-NAME REM-PORT-PANEL-NAME
. . .
SYSTEM-TYPE SYSTEM-NAME [CFG: <b1>=<modifier>, [<b2>=<modifier>]...]
LOCAL-PORT-PANEL-NAME -> REM-SYS-TYPE REM-SYS-NAME REM-PORT-PANEL-NAME
LOCAL-PORT-PANEL-NAME -> REM-SYS-TYPE REM-SYS-NAME REM-PORT-PANEL-NAME
. . .
. . .
Where:
SYSTEM-TYPE and REM-SYS-TYPE
Any system that has a corresponding IBNL definition. See man ibdm-ibnl-file
SYSTEM-NAME
The name of the system described in this topology file section.
LOCAL-PORT-PANEL-NAME
The name of the local system port. The numbers printed on the front panel are used together with Ln for Leaf no. N or Sn for Spine no.
N.
REM-SYS-NAME
The name of the system connected to the local port.
REM-PORT-PANEL-NAME
A name of the remote system port. We use the numbers as printed on the front panel and Ln for Leaf number N or Sn for Spine number N.
EXAMPLE
The following is a topology file for a simple cluster with one 24 port switch and two HCAs. The firts HCA named H-1 and connect to the
fabric with its two ports. The second HCA named H-2. The switch is of type MTS2400 and is named S-1
MTS2400 S-1
P1 -> MT23108 H-1 P1
P2 -> MT23108 H-1 P2
P24 -> MT23108 H-2 P1
OPTIONAL CFG SECTION
This section in the system declaration line describes the special customization of each board of the system.
That is the CFG string is a set of comma-separated sub-fields. Each sub-field describes some special configuration of a corresponding
system board. The actual semantics of the specific board modifiers is defined by the IBNL of the specific system.
EXAMPLE
The following is an example of a definition-line in a topology file of the MTS9600 switch system. This switch system can have up to eight
leafs and four spines. This example of the MTS9600 lacks (R) leafs no.6,7 and 8, and lacks spines no. 3 and 4.
MTS9600 PartialGz1 CFG: leaf3=R,leaf5=R,leaf7=R,spine1=R
AUTHOR
Eitan Zahavi, Mellanox Technologies LTD, eitan@mellanox.co.il
IBDM 1.0 2009-02-16 IBDM-TOPO-FILE(1)