Search Results

Search: Posts Made By: calitiggr
9,038
Posted By calitiggr
I'm still a newbie at this but what about... ...
I'm still a newbie at this but what about...

(Assuming all your files are in the same directory)

for oldfile in *;
do
egrep 'line2' $oldfile > new-$oldfile;
done;
1,096
Posted By calitiggr
Shorter AWK for my code?
Hi Folks,

I know my code works, but I'm still a newbie at arrays and how they function.

Is there is shorter way to write my code? I'm taking averages in multiple files and concatenating output...
7,201
Posted By calitiggr
This code ended up adding 2 rows to my file ...
This code ended up adding 2 rows to my file
$file $file $file
$file $file $file
first middle last
1 2 3
4 5 6

But it helped with tweaking rdcwayx's code for a backup file :)

rdcwayx: your...
7,201
Posted By calitiggr
Echo file name as header
I'm trying to create a header row that contains the filename of a file for all columns.

e.g.
file1.txt

first middle last
1 2 3
4 5 6

desired output file should be:
file1 file1 file1...
2,096
Posted By calitiggr
I was just lazy with the post...I resolved my...
I was just lazy with the post...I resolved my issue, although I still don't know what was the root cause.

I think my issue what that I saved the file in csv format in excel. Once I...
2,096
Posted By calitiggr
awk question row into column
I have a csv file: test1.csv with 26 columns

Sample:
Data collected Comp1,,,,,,,,,,,,,,,,,,,,,,,,,Average
Number of Arrivals with non Zero,0,0,0,0,0,0,0,0,0,...,0...
10,536
Posted By calitiggr
Sorry! I'm a newbie. Using script: awk...
Sorry! I'm a newbie.

Using script:
awk -F, '{print $1, ","$4}' in_bits.csv > out.csv

Sample input:
time,binary time,bytes,bits,accum,num packets,resolution 1.0
8/12/10...
10,536
Posted By calitiggr
awk with tsv & csv
Hi! HELP! I have a few issues...

I have a tsv with headers time, binary time, bytes, and bits. I'm trying to extract only time & bits. (Trying to graph throughput)

Using:
awk -F"\t" '{print...
Showing results 1 to 8 of 8

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