Search Results

Search: Posts Made By: carlr
1,222
Posted By carlr
Thanks for the replies. Jim, I don't...
Thanks for the replies.

Jim,
I don't understand a few parts of your code:
awk -F, ' FILENAME=="Codes1_Final.txt" {arr[$1]++} FILENAME=="Codes2_Final.txt" {if( ! $1 in arr){ print $0}...
1,222
Posted By carlr
How to compare 1, 1.0 and 1.00 ?
Hi,

I have a file containing a list of codes, followed by a description, such as below:

008.0,ESCHERICHIA COLI
008.1,ARIZONA
008.2,AEROBACTER AEROGENES
008.6,ENTERITIS DUE TO SPECIFIED VIRUS...
1,828
Posted By carlr
How to add line to previous line if not a number?
Hi,
I am trying to compare 2 lists. However, one of these lists has to be taken from a.pdf file. When I copy the test into a .txt document there are formatting errors which I need to correct. The...
3,340
Posted By carlr
sed - replacement file path with variable - Escaping / character
Hi,,
I have the line below in a file:
$!VarSet |LFDSFN1| = '"E:\APC\Trials\20140705_427_Prototype Trial\Data\T4_20140705_Trial_Cycle_Data_13_T_Norm.txt" "VERSION=100 FILEEXT=\"*.txt\"...
43,180
Posted By carlr
How to remove all blank spaces in a file
I have a file which contains data such as that shown below. How do i remove all the blcnak spaces, before, during and at the end of each line in one command?
300015, 58.0823212, 230.424728
...
1,888
Posted By carlr
How to remove , if first character on line
Hi,

I have a file with lines such as the below. I want to remove the comma only if it is the first character on a line. I can't work out how to do this using sed.

*ELSET, ELSET=WHEEL_TD2
...
3,398
Posted By carlr
Passing variables between sub-scripts
I have written a program for some data analysis. It is gettin long. I would like to restructure it so that i can have a master file which controls multiple subscripts in order to make it easier to...
1,594
Posted By carlr
Fortmating text file - single col to X columns
Hi,
I have a large file with 100,000+ lines. Each line have a single value.
How do I effiecntly format the text to be X number of commas spaced fields in width.
i.e how do i turn this input:
26...
1,812
Posted By carlr
Thanks the above works very nicley. But i now...
Thanks the above works very nicley. But i now have another issue.

I need to efficiently scan through a text file of 70,000 lines and populate an array. This time it is more complex. Each line has...
1,812
Posted By carlr
Efficient population of array from text file
Hi,

I am trying to populate an array with data from a text file. I have a working method using awk but it is too slow and inefficent. See below.

The text file has 70,000 lines. As awk is a...
3,570
Posted By carlr
sed -Replacing file path within .txt file
Hi,

I am trying to use sed to replace a file path within all the .lay (.txt) files in a folder. I feel that this should be easy but I can't get it to work no matter what i try.

I'm using...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 02:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy