04-09-2016
That worked perfectly. Very much appreciated!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi I have two questions.
1. how to convert "EverythingIsFine" to "Everything Is Fine" in a txt file.
2. how to convert everything to upper case letter and reverse, I hope there is a general purpose script for this. (1 Reply)
Discussion started by: onthetopo
1 Replies
2. UNIX for Dummies Questions & Answers
I have a space delimited text file. I want to extract rows where the third column has 0 as a value and write those rows into a new space delimited text file. How do I go about doing that? Thanks! (2 Replies)
Discussion started by: evelibertine
2 Replies
3. UNIX for Dummies Questions & Answers
I have 2 files,
file01= 7 columns, row unknown (but few)
file02= 7 columns, row unknown (but many)
now I want to create an output with the first field that is shared in both of them and then subtract the results from the rest of the fields and print there
e.g.
file 01
James|0|50|25|10|50|30... (1 Reply)
Discussion started by: A-V
1 Replies
4. Shell Programming and Scripting
I need to change . into . so that e.g.
A.Jbecomes A. JI have tried sed 's/\./\.\ /g' but that didn't work. (9 Replies)
Discussion started by: locoroco
9 Replies
5. Shell Programming and Scripting
How to change the uploaded weekly file data to the following format?
New Well_Id,Old Well_Id,District,Thana,Date,Data,R.L,WellType,Lati.,Longi.
BAG001,PT006,BARGUNA,AMTALI,1/2/1978,1.81,2.29,Piezometer,220825,901430
BAG001,PT006,BARGUNA,AMTALI,1/9/1978,1.87,2.29,Piezometer,220825,901430... (3 Replies)
Discussion started by: sara.nowreen
3 Replies
6. Shell Programming and Scripting
Hi all,
I have one file with a sequence and the other file which says the position and the letter to be changed. I have to match two files and replace content. Example is shown which will describe what I want to do. For example, file 1 has many sequences and few are shown below
sequence file:... (6 Replies)
Discussion started by: kaav06
6 Replies
7. Shell Programming and Scripting
Hi - I have a file "file1" of below format. Its a comma seperated file. Note that each string is enclosed in double quotes.
"abc","-0.15","10,000.00","IJK"
"xyz","1,000.01","1,000,000.50","OPR"
I want the result as:
"abc","-0.15","10000.00","IJK"
"xyz","1,000.01","1000000.50","OPR"
I... (8 Replies)
Discussion started by: njny
8 Replies
8. Shell Programming and Scripting
I have a csv file and i want to convert its rows into columns
sample file like this
Row1,1,2,3,......,n
row2,4,5,6,.......,n
.
.
.
.
rown,7,8,9,........,n
i want it like this
row1,row2,....,rown
1,4,.............,7 (4 Replies)
Discussion started by: sagar_1986
4 Replies
9. Shell Programming and Scripting
Good afternoon all,
I want to ask how to change some letter in my file with other letter in spesific line
eg.
data.txt
1
1
1
0
0
0
0
for example i want to change the 4th line with character 1.
How could I do it by SED or AWK.
I have tried to run this code but actually did not... (3 Replies)
Discussion started by: weslyarfan
3 Replies
10. Shell Programming and Scripting
Hi,
I need to replace, as the title says, the first letter of each line (when it's not a number) by the same letter, but capital.
For instance :
hello
Who
123pass
Would become :
Hello
Who
123pass
Is there a way with sed to do that ? Or other unix command ?
Thank you :) (7 Replies)
Discussion started by: ganon551
7 Replies
LEARN ABOUT MOJAVE
iofileb.d
iofileb.d(1m) USER COMMANDS iofileb.d(1m)
NAME
iofileb.d - I/O bytes by file and process. Uses DTrace.
SYNOPSIS
iofileb.d
DESCRIPTION
This prints a summary of requested disk activity by pathname, providing totals of the I/O events in bytes. It is a companion to the
iofile.d script - which prints in terms of I/O wait time, not bytes. I/O wait time is a better metric for understanding performance
issues. Both disk and NFS I/O are measured.
Since this uses DTrace, only users with root privileges can run this command.
EXAMPLES
Sample until Ctrl-C is hit then print report,
# iofileb.d
FIELDS
PID process ID
CMD process name
KB kilobytes of disk I/O
FILE file pathname
DOCUMENTATION
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver-
bose descriptions explaining the output.
EXIT
iofileb.d will sample until Ctrl-C is hit.
SEE ALSO
iofile.d(1M), iosnoop(1M), dtrace(1M)
version 1.00 Feb 20, 2006 iofileb.d(1m)