04-05-2014
Sorry for not being more specific.
The output that clx posted and the corresponding script were exactly what I needed — thank you very much.
The column spacings are indeed important but easy to modify manually in e.g. vi should the need arise; the reason I needed a script for this is because the actual data I need to use the script on contains thousands of lines of coordinates, so it would be totally unrealistic to do that part by hand.
Many thanks again.
Last edited by crunchgargoyle; 04-05-2014 at 05:28 PM..
Reason: Edit: also yes, sorry, I did mean column 6
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I would like to write a script with BASH to add two numbers (integer) and write the result to the standard output. Please help! (7 Replies)
Discussion started by: Viper01
7 Replies
2. UNIX for Dummies Questions & Answers
Hello everyone !
Ive searched everywhere and still havnt found enough information to help me overcome (what seems like) a small problem
I have created a temporary file in which i store numbers which a seperated by a space, eg)
5 10 46
23 866 392
i wish to take the numbers for each line... (2 Replies)
Discussion started by: healwithchaos
2 Replies
3. Shell Programming and Scripting
Howdy experts,
We have some ranges of number which belongs to particual group as below.
GroupNo StartRange EndRange
Group0125 935300 935399
Group2006 935400 935476
937430 937459
Group0324 935477 935549
... (6 Replies)
Discussion started by: thepurple
6 Replies
4. Shell Programming and Scripting
I am begining to learn bourne shell and as a practice I have written a script which when given the purchase price and percentage of discount calculates the savings.
I somehow cannot figure out why my script fails to do arthimatic calculation on real numbers.
Could anyone look at the script... (5 Replies)
Discussion started by: Tirmazi
5 Replies
5. Shell Programming and Scripting
Hello All,
I am having problem to find what is the smallest number from 90% of highest numbers from all numbers in file. I am having file with thousands of lines and hundreds of columns.
I am familiar mainly with bash but I am open to whatever suggestion witch will lead to the solutions.
If I... (11 Replies)
Discussion started by: Apfik
11 Replies
6. Shell Programming and Scripting
Hi
I figured how to add my list of numbers. However how do I count so that after a certain number it lists the line.
Example:
12 test1
46 test2
195 test3
174 test4
634 test5
185 test6
94 test7
So basically add the numbers and when the addition reaches 300 or less
print the... (8 Replies)
Discussion started by: bombcan
8 Replies
7. UNIX for Dummies Questions & Answers
Dear all,
I have one file (see below) with more then 100 columns and 2500 rows, and need only column which has GType in label with Alphabets, please help me to remove these columns with numbers.
input file is
n.201.GType n-201.Theta n-201.R n_1.GType n_1.Theta n_1.R... (6 Replies)
Discussion started by: AAWT
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I would like to add a new column containing the row numbers to a text file. How do I go about doing that? Thanks!
Example input:
A X
B Y
C D
Output:
A X 1
B Y 2
C D 3 (5 Replies)
Discussion started by: evelibertine
5 Replies
9. Shell Programming and Scripting
Hello,
I am having a problem when i execute following script on RHEL 6.4. Same script works fine on another machine where I have same version of RHEL and KSH.
Below is the rpm and RHEL version.
ossvm12(0)> rpm -qa | grep ksh
ksh-20100621-19.el6.x86_64
ossvm12(0)> cat... (7 Replies)
Discussion started by: Adithya Gokhale
7 Replies
10. Shell Programming and Scripting
Hi Folks,
I have a file with 2 columns TAB delimited and I want to add '1' to the first column and subtract '-1' from the second column.
What I have tried so far is;
awk -F"\t" '{ $1-=1;$2+=1}1' OFS='\t' file
File
0623 0623
0624 0624
0643 0643
1059 1037
1037 1037
1038 1038... (2 Replies)
Discussion started by: pshields1984
2 Replies
LEARN ABOUT DEBIAN
fdutilsconfig
FDUTILSCONFIG(8) System Manager's Manual FDUTILSCONFIG(8)
NAME
fdutilsconfig - configure the suid bit of fdmount
SYNOPSIS
fdutilsconfig
DESCRIPTION
The fdutilsconfig script provides an interactive way to configure the suid bit of the fdmount(1) binary. It asks you some questions, give
you a hint if needed, and enters your choice to /etc/fdmount.conf file.
When upgrading the Debian fdutils package, the suid bit information stored in /etc/fdmount.conf is used to tell the new fdmount binary to
keep your old suid bit settings.
The script makes use of the suidmanager Debian package, if it is installed. If the script cannot find it, it manipulates the suid bit
directly via `chmod u+s' command.
FILES
fdutilsconfig reads and writes the configuration from /etc/fdmount.conf. This file is usually created when the fdutils package is
installed for the first time. Please don't edit /etc/fdmount.conf manually! Use fdutilsconfig instead.
NOTE
This script was written exclusively for the Debian GNU/Linux distribution. It is not a part of the upstream fdutils sources.
AUTHORS
fdutilsconfig was adapted by Anthony Fok <foka@debian.org> from the gnuplotconfig script written by Tibor Simko <simko@debian.org>.
SEE ALSO
fdmount(1), suidregister(8), suidunregister(8)
4th Berkeley Distribution 24 January 1999 FDUTILSCONFIG(8)