Script to change the file content using some conditions
Hello,
I would like to change the content of the file that has few blocks starts with 10 and ends with ";"
File1.txt
I've tried using awk to match the sets but could not able to get the output as below - each block has some lines starts with 40 that need to be merged with line starts with 20 with AND and then 40 line needs to be deleted.
output.txt
I'm trying it to get it achieved. Please provide your valuable suggestions or approches to get it reach the expected output. Thanks!
Hi All,
I have one file that sits on 4 diffrent servers, those servers are diffrent region based and they are authentication protected and that file has a diff port numbers, so when run the script it must ask my login details,region of server and port no for that file once it took from me... (1 Reply)
Hi All,
I have a file that sits on 4 diffrent servers, those servers are diffrent region based and they are authentication protected and that file has a diff port numbers, so when run the script it must ask my login details,region of server and port no for that file once it took from me it... (1 Reply)
Greetings.
So the question is basically the same as it's in the title.
I'd like to write a program that changes a file by rows. So to clarify it.
(i know i shouldn't use code,/code here but i would like to separate it)
So for example a text file looks like something like this:
Happy... (5 Replies)
I have a Transaction File coming into the system. In this file, in all records the relevant data is as follows-
Position 1:10 -> Transaction Code
Position 252:255 -> 4 digit business code
Now based on these 2 fields I have to alter value in Transaction code (Position 1:10)... (6 Replies)
Input file
>Read_1
XXXXXXXXXXSDFXXXXXDS (condition 1: After the last "X" per line, if the distance is less than or equal to 3 letter, replace those not "X" letter with "X")
TREXXXXXXXSDFXXXXXDS (condition 2: Before the first "X" per line, if the distance is less than or equal to 3 letter,... (12 Replies)
Good day to you all,
Just want to check here, i know when scping a file, size might change due to space issue. it might sound silly, but does file content get change too? if so, what kind of situation that might be? (1 Reply)
Hi Gurus,
I have file content sample:
,5113955056,,TAgent-Suspend
,5119418233,,TAgent-Suspend
,5102119078,,TAgent-Suspend
filenames 120229H5_suspend, 120229H6_unsuspend
I receive those files one of directory /home/temp/
I need following:
1. Backup first /home/temp/ file to... (5 Replies)
Hi,
i have a file input.txt
Continent North America
Country USA Capital Washington D.C.
Country Canada Capital Ottawa
Continent South America
Country Argentina Capital Buenos Aires
Country Brazil Capital Brasília
Coutry Colombia Capital Bogotá
and i want to get an output.txt
... (3 Replies)
Hi,
I have a files in a directory as below :-
ls -1
mqdepth-S1STC02
proc-mq-S1STC01
proc-mq-S1STC02
proc-mq-S1STC03
Whereever i have S1STC i need to copy them into new file with file name S2STC.
expected output :-
ls -1
mqdepth-S2STC02
proc-mq-S2STC01
proc-mq-S2STC02... (3 Replies)
I have the file sed1.txt and I need to strip the brackets (]) and content inside them only when
I have two or three letters followed by a colon.
for example,it may be any letter, not just abc
]
]
#-- cat sed1.txt
1 ] FISICA
2 ]PORTUGUES
3 ] ]MATEMATICA
4 ]]INGLES ]
5 ]QUIMICA
6... (2 Replies)
Discussion started by: dperboni
2 Replies
LEARN ABOUT DEBIAN
solterm
solterm(1) IPMI Serial over LAN program solterm(1)NAME
solterm - An IPMI Serial over LAN program
SYNOPSIS
solterm
<connection parms> [-e escape_char] [-notencrypted] [-notauthenticated] [-bitrate (9600|19200|38400|57600|115200)] [-alerts (suc-
ceed|defer|fail)] [-holdoff] [-ack-retries n] [-ack-timeout microseconds] [-v] [-q]
DESCRIPTION
The solterm program allows a user to make a remote serial connection over IPMI. The requires that the remote system support IPMI 2.0
Serial Over LAN.
OPTIONS
<connection parms>
The parameters for the connection depend on the connection type. These are all described in openipmi_conparms (7)
-e escape_char
The character to use to escape, or exit, the program. Entering this chatacter right after a newline is entered causes the program
to go into command mode. A single character after this performs a command. The default escape character is "~" as shown below.
Suppported commands are:
~. Terminate the program
~B Send a serial BREAK over the connection
~F Flush all buffers
~R Assert the Ring Indicator (RI) line
~r Deassert the Ring Indicator (RI) line
~D Assert DCD and DSR lines
~d Deassert DCD and DSR lines
~C Pause the output using CTS
~c Put CTS under BMC control
~? Help on escape commands
~~ Enter the escape character twice to send it.
-notencrypted
Do not encrypt the SOL data going over the connection.
-notauthenticated
Do not do integrity checks on the SOL data going over the connection.
-bitrate
Set the bitrate to the given value. The default is whatever the BMC has set it to.
-alerts
This specifies what to do if a alert that requires a callout occurs on the line.
succeed
specifies that serial/modem alerts are to succeed while SoL is active.
deferred
specifies that serial/modem alerts are to be deferred for the duration of the SoL session.
fail specifies that serial/modem alerts automatically fail during the SoL session. This is the default.
-holdoff
Specifies that CTS, DTR, and DSR are to be deasserted at the start of the SoL session so that the configuration may be modifeid
before the handshake is released.
-v Be more verbose. Maybe specified multiple time for more output.
-q Be less verbose. Maybe specified multiple time for less output.
SEE ALSO openipmi_conparms(7)KNOWN PROBLEMS
None
AUTHOR
Darius Davis <dariusd@users.sourceforge.net>
OpenIPMI 05/13/03 solterm(1)