Search Results

Search: Posts Made By: bistru
5,419
Posted By bistru
Great! Thanks!
Great! Thanks!
5,419
Posted By bistru
Thanks. I managed to write the following script: ...
Thanks. I managed to write the following script:
#!/bin/bash

awk '{
for ( i=1; i<=NF; i++)
print $i }
' $1

Unfortunately all output is written in one column/field. I want it with the...
5,419
Posted By bistru
awk - print formatted without knowing no of cols
Hi,
i want to print(f) the content of a file, but i don't know how many columns it has (i.e. it changes from each time my script is run). The number of columns is constant throughout the file.
...
5,953
Posted By bistru
Thank You very much! It works perfect! A bit...
Thank You very much! It works perfect!

A bit over the top for me, but i'll try and figure out how it works. Hopefully i will learn something.

Thanks again,
Howie
5,953
Posted By bistru
Sorry. I read the list from one file, and...
Sorry.

I read the list from one file, and want to write to a new file. The only condition is that i want to have "complete" listing, with a complete range from the lowest number to the highest...
5,953
Posted By bistru
Fill in missing numbers in range
I need to edit a list of numbers on the following form:

1 1.0
2 1.4
5 2.1
7 1.9

I want:
1 1.0
2 1.4
3 0.0
4 0.0
5 2.1
6 0.0
7 1.9

(i want to add the missing number in column 1...
43,021
Posted By bistru
Thanks, both worked perfectly! BTW,...
Thanks, both worked perfectly!

BTW, zazzybob, i'm not able to understand the syntax rather well. Do You mind giving a short explanation? I understand '-n' and that 'p' overruns the '-n'. From man...
43,021
Posted By bistru
Remove every third line from a file
I need to remove every second and every third line from a file. My idea was to do it in two operations. First every third line, then every second line. The problem is that i can't find out how to do...
Showing results 1 to 8 of 8

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