For example, I have files called A.txt and B.txt.
A.txt
B.txt
I would like to count the mean square root error, which has the formula exactly the same with the picture.
So far, I have this code to combine them:
After it combine it will become this text file:
The column#2 = yj and column#4 = ^yj. Any idea?
All,
I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Hi I just stumbled on to these forums today, and I relatively new to unix. I am trying to figure out how to find the square root of a number using a shell script. I am using bash and I have searched and searched but cannot figure out square roots. Hopefully someone can point me in the right... (3 Replies)
I am just starting out with bash scripting. I tried a simple script to find the area of a square and it didnt run.
#!/bin/bash
#script to find area of a square based on user input
if
then
echo " Usage -$0 x "
echo " where x is the dimension of the square "
exit 1
n1=$1
... (2 Replies)
Hi All,
I have a text file which looks like this:
computer programming
systems engineering
I want to get rid of these square brackets and also the text that is inside these brackets. So that my final text file looks like this:
computer programming
systems engineering
I am using... (3 Replies)
I have a file with say 50 columns, each containing a whole lot of data.
Each column contains data from a separate simulation, but each simulation is related to the data in the last (REFERENCE) column $50
I need to calculate the RMS deviation for each data line, i.e. column 1 relative to... (12 Replies)
Hi All
After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Dear friend,
I know for a single case, this could be finished quickly with Excel. But if we have hundreds of files, we definitely want to do it with a script or a FORTRAN code. Since I have no knowledge of FORTRAN, I tried to work out a script to do it. The math is very simple. we chose one atom... (4 Replies)
Hi all, (mainly Neo)...
I keep noticing that the SQRT code I wrote recently for a POSIX shell keeps appearing, (the green colour sticks out like a sore thumb).
So I decided to take a look on Google.
Guess what?
UNIX.COM comes first in Google's listing just from two words, see image... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT DEBIAN
bomstrip
BOMSTRIP(1) BSD General Commands Manual BOMSTRIP(1)NAME
bomstrip, bomstrip-files -- strip the BOM sequence from UTF-8 files
SYNOPSIS
bomstrip
bomstrip-files file ...
DESCRIPTION
The bomstrip utility reads UTF-8 data from its standard input and copies it to its standard output, stripping the BOM (byte-order mark) from
the beginning of the text if it is present. There are no command-line options and no parameters.
The bomstrip-files utility removes the UTF-8 BOM from the specified files, saving each file's original contents with a .bom extension. It
uses the bomstrip utility, trying to execute it as ``bomstrip''; if the bomstrip utility is installed under another name, or if a more com-
plex command is desired, it may be supplied in the BOMSTRIP environment variable.
EXAMPLES
Strip the BOM, if present, from a text file:
bomstrip < bom.txt > nobom.txt
Strip the BOM, if present, from all text files, backing them up with a .bom extension:
bomstrip-files *.txt
Use the OCAML implementation of bomstrip:
env BOMSTRIP='ocaml bomstrip.ocaml' bomstrip-files *.txt
SEE ALSO
The bomstrip home page: http://www.xs4all.nl/~mechiel/projects/bomstrip/
HISTORY
The bomstrip utility (in many languages) was written by Mechiel Lukkien, with implementations in various languages sent to him by others,
including Andreas Gohr, Andrew Gerrand, Berteun Damman, Matthijs Bomhoff, Peter Pentchev, and Ruben Smelik. The bomstrip-files utility and
this manual page were written by Peter Pentchev in the hope that they reflect the behavior of all the bomstrip implementations in all lan-
guages.
AUTHORS
Mechiel Lukkien <mechiel@xs4all.nl>
Peter Pentchev <roam@ringlet.net>
BSD June 14, 2008 BSD