Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
ROOT Analysis
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Data Editing== === Remove Extraneous Text === After the text file is copied onto a USB drive, the data can be moved to a third computer for analysis. This is done because the first two computers are in single-user mode and could not run the programs needed to analyze the data. Initially, the file will look like this: 64 bytes from 192.168.1.2: icmp_seq=0 ttl=255 time=.576 ms 64 bytes from 192.168.1.2: icmp_seq=1 ttl=255 time=.587 ms 64 bytes from 192.168.1.2: icmp_seq=2 ttl=255 time=.591 ms 64 bytes from 192.168.1.2: icmp_seq=3 ttl=255 time=.511 ms However, the only data that is necessary is the trial number and the round-trip time. Now, we can parse through the file and remove the extra text that is not needed. Listed below are the necessary steps: '''Steps''' 1. Mount the USB 2. Copy the files onto the analysis computer using ''cp /media/'''USB Name'''/'''File Name''' .'' (The period is in the line of code) 3. Now remove the extra text using ''cat '''File Name''' | sed 's/= /g' | awk '{print $6 " " $10}' '' The following should be the only data displayed: 0 .576 1 .587 2 .591 3 .511 4. A new file needs to be created with this new formatting, use: ''cat '''File Name''' | sed 's/= /g' | awk '{print $6 " " $10}' > '''New File Name''' '' 5. To check if the file saved properly use: ''cat '''New File Name''' '' 6. Now we will use the "emacs" editor to clear up any extraneous text. Type ''emacs ''New File Name'''' 7. Use this editor to remove extra text at the bottom and top of the file, then save 8. The file is now ready for data analysis
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)