Hi, Iam new to unix. I have one input file .
Input file :
ID1~Name1~Place1
ID2~Name2~Place2
ID3~Name3~Place3
I need output such that only first column should change to fixed width column of 15 characters of length.
Output File:
ID1<<12 spaces>>Name1~Place1
ID2<<12... (5 Replies)
If the 4th column has - sign then the names in 3rd column has to change to some user defined names (as shown in output).
Thanx
input1
1 a aaaaa +
2 b bbbbb +
3 c ccccc +
4 d ddddd +
5 e eeeee +
6 f xxxxx +
8 h hhhhh +... (8 Replies)
I have multiple condition in file as below.
MONITOR "ALERT_INFO"
DESCRIPTION "Triggered when informational Netware alert occured"
MAXTHRESHOLD 95
SEVERITY Normal
MONITOR "ALERT_MAJOR"
DESCRIPTION "Triggered when major Netware alert occured"
MAXTHRESHOLD
SEVERITY Major
I need to... (6 Replies)
Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2
file 1 sample
SNDK 80004C101 AT
XLNX 983919101 BB
NETL 64118B100 BS
AMD 007903107 CC
KLAC 482480100 DC
TER 880770102 KATS
ATHR 04743P108 KATS... (7 Replies)
Hey folks. I wrote a little awk script that summarizes /proc/net/dev info and then pipes it to the nix column command to set up column spacing appropriately.
Here's some example output:
Iface RxMBytes RxPackets RxErrs RxDrop TxMBytes TxPackets TxErrs TxDrop
bond0 9 83830... (3 Replies)
Hi Guys,
Input.txt
L194 A -118.2
L194 B -115.1
L194 C -118.7
L196 A 0
L196 C 0
L197 A -111.2
L197 B -118.9
L197 C -119.9
L199 A -120.4
L199 B -119.9 ... (2 Replies)
Hello All,
I have a file which have content as below.
03/09/2014 10:35 AM 618 Admin\rick pqr_ klm2_pog12_20140309_c.xlsx
03/10/2014 10:35 AM 618 user\test01 mplz_ fgh2_lal12_20140310_c.xlsx
03/17/2014 10:35 AM 618 Admin\vick abc_ xyz2_bc12_20140317_c.xlsx
03/18/2014 ... (2 Replies)
Hello,
I have this file outputData:
# cat /tmp/outputData
__Capacity^6^NBSC01_Licences^L3_functionality_for_ESB_switch
__Capacity^2100^NBSC01_Licences^Gb_over_IP
__Capacity^1837^NBSC01_Licences^EDGE_BSS_Fnc
__Capacity^1816^NBSC01_Licences^GPRS_CS3_and_CS4... (1 Reply)
Source Code of the original script is down below please run the script and try to solve this problem
this is my data and I want it column wise
2019-03-20 13:00:00:000
2019-03-20 15:00:00:000
1
Operating System
LAB
0
1
1
1
1
1
1
1
1
1
0
1 (5 Replies)
Discussion started by: Shubham1182
5 Replies
LEARN ABOUT OPENSOLARIS
sys-suspend
sys-suspend(1) User Commands sys-suspend(1)NAME
sys-suspend - suspend or shutdown the system and power off
SYNOPSIS
/usr/bin/sys-suspend [-fnxh][-d displayname]
DESCRIPTION
sys-suspend provides options to suspend or shutdown the whole system.
A system can be suspended to conserve power or to prepare the system for transport. The suspend should not be used when performing any
hardware reconfiguration or replacement.
In case of suspend, the current system state is preserved either by keeping memory powered (Suspend to RAM), or by saving the state to non-
volatile storage (Suspend to Disk) until a resume operation is performed by power on or a wake-up event.
On a resume in the windows environment, the system brings up lockscreen to ensure that only the authorized person has access to the system.
In a non-windows environment, the user is prompted for password.
It is possible that when devices or processes are performing critical or time sensitive operations (such as real time operations) the sys-
tem fails to suspend. When this occurs, the system remains in its current running state. Messages reporting the failure are displayed on
the console or system log. Once the system is successfully suspended, the resume operation always succeed barring external influences such
as hardware reconfiguration or the like.
In case of shutdown, the system responds as if poweroff(1M) was performed.
This command enforces the solaris.system.power.suspend. authorizations. On a default install these are associated with the console user.
Other users need to include these authorizations or include the Suspend profile.
OPTIONS
The following operands are supported:
-d displayname Connect to the X server specified by displayname.
-f Force suspend. Causes a poweroff(1M) to occur if the suspend fails. System state are not be saved, and a normal boot follows.
-h Change the default from suspend to shutdown.
-n Do not display messages or request user intervention.
-x Disable lockscreen. This flag disables the execution of lockscreen at resume time.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpmowu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO halt(1M), powerd(1M), poweroff(1M), shutdown(1M), attributes(5), cpr(7)SunOS 5.11 10 Mar 2009 sys-suspend(1)