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:
and the result should look like:
Sorry for this stupid example, but I think it is easier to understand in this way. The reason why i post this is that i've got no idea how to start it. I've searched for some commands that might switch the lines but found nothing.
Thanks for your help in advance and sorry for my english, might have spelled something wrong!
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)
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)
I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (0 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)
Hello,
I would like to change the content of the file that has few blocks starts with 10 and ends with ";"
File1.txt
10 bonuses D
20 MATCHED
30 UPD COL
40 (SOL=30)
20 NOT MATCHED
30 INS COL
40 (SOL=30)
;
10 bonuses D
20 MATCHED
30 UPD COL
40... (5 Replies)
Discussion started by: Mannu2525
5 Replies
LEARN ABOUT FREEBSD
hme
HME(4) BSD Kernel Interfaces Manual HME(4)NAME
hme -- Sun Microelectronics STP2002-STQ Ethernet interfaces device driver
SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device miibus
device hme
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
if_hme_load="YES"
DESCRIPTION
The hme driver supports Sun Microelectronics STP2002-STQ ``Happy Meal Ethernet'' Fast Ethernet interfaces.
All controllers supported by the hme driver have TCP checksum offload capability for both receive and transmit, support for the reception and
transmission of extended frames for vlan(4) and a 128-bit multicast hash filter.
HARDWARE
The hme driver supports the on-board Ethernet interfaces of many Sun UltraSPARC workstation and server models.
Cards supported by the hme driver include:
o Sun PCI SunSwift Adapter (``SUNW,hme'')
o Sun SBus SunSwift Adapter (``hme'' and ``SUNW,hme'')
o Sun PCI Sun100BaseT Adapter 2.0 (``SUNW,hme'')
o Sun SBus Sun100BaseT 2.0 (``SUNW,hme'')
o Sun PCI Quad FastEthernet Controller (``SUNW,qfe'')
o Sun SBus Quad FastEthernet Controller (``SUNW,qfe'')
NOTES
On sparc64 the hme driver respects the local-mac-address? system configuration variable which can be set in the Open Firmware boot monitor
using the setenv command or by eeprom(8). If set to ``false'' (the default), the hme driver will use the system's default MAC address for
all of its devices. If set to ``true'', the unique MAC address of each interface is used if present rather than the system's default MAC
address.
Supported interfaces having their own MAC address include on-board versions on boards equipped with more than one Ethernet interface and all
add-on cards except the single-port SBus versions.
SEE ALSO altq(4), intro(4), miibus(4), netintro(4), vlan(4), eeprom(8), ifconfig(8)
Sun Microelectronics, STP2002QFP Fast Ethernet, Parallel Port, SCSI (FEPS) User's Guide,
http://mediacast.sun.com/users/Barton808/media/STP2002QFP-FEPs_UG.pdf, April 1996.
HISTORY
The hme driver first appeared in NetBSD 1.5. The first FreeBSD version to include it was FreeBSD 5.0.
AUTHORS
The hme driver was written by Paul Kranenburg <pk@NetBSD.org>.
BSD June 14, 2009 BSD