Hello,
I am trying to write a bash shell script that does the following:
1.Finds all *.txt files within my directory of interest
2. reads each of the files (25 files) one by one (tab-delimited format and have the same data format)
3. skips the first 10 rows of the file
4. extracts and... (4 Replies)
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Hi,
I have a directory full of *.txt files. I would like to print the last line of every file to screen.
I know you can use FNR for printing the first line of each file, but how do I access the last line of each file?
This code doesn't work, it only prints the last line of the last file:BEGIN... (5 Replies)
Hello everyone, I'm new to this forum and i am new as a shell scripter.
my problem is to have html files in a directory and I would like to extract from these some data that lies between two different lines
Here's my situation
<td align="default"> oxidizability (mg / l):
data_to_extract... (6 Replies)
Hi!
I have one file with data that looks like this:
1 data data data data
2 data data data data
3 data data data data
.
.
.
1 data data data data
2 data data data data
3 data data data data
.
.
.
I would like to have awk to write each block to a separate file, like this:
1... (3 Replies)
I am trying to extract common list of Organisms from different files
For example I took 3 files and showed expected result. In real I have more than 1000 files. I am aware about the useful use of awk and grep but unaware in depth so need guidance regarding it.
I want to use awk/ grep/ cut/... (7 Replies)
Hi, I'm trying to get some data from an html file, but the problem is before it can extract the information I have multiple patterns that need to be passed through.
https://www.unix.com/shell-programming-scripting/150711-extract-data-awk-html-files.html
Is a similar problem. The only... (5 Replies)
Hi,
I have directory with multiple files from which i need to extract portion of specif lines and insert it in a new file, the new file will contain a separate columns for each file data.
Example:
I need to extract Value_1 & Value_3 from all files and insert in output file as below:
... (2 Replies)
Greetings experts,
Have 2 input files, of which 1 file has 1 record per line; in 2nd file, multiple lines constitute 1 record; Hence declared the RS=";"
Now in the first file which ends with ";" at each line of the line; But \nis also being considered as part of the data due to which
I am... (1 Reply)
BRANDY(1) BBC BASIC V interpreter BRANDY(1)NAME
brandy - a portable BBC BASIC V interpreter
SYNOPSIS
brandy [-help] [-size SIZE] [-lib FILENAME] [-load FILENAME] [-path DIRECTORY[,DIRECTORY]...] [-quit FILENAME] [-chain FILENAME] [-ignore]
[FILENAME]
DESCRIPTION
Brandy is an interpreter for BBC BASIC V, the dialect of BASIC that Acorn Computers supplied with their ranges of desktop computers that
use the ARM processor such as the Archimedes and Risc PC, and is still in use on these and compatibles.
BASIC V is a much extended version of BBC BASIC. This was the BASIC used on the 6502-based BBC Micro that Acorn made during the 1980s.
OPTIONS -help Print a summary of these options.
-size SIZE
Set the size of the Basic workspace to SIZE bytes when starting the interpreter. The minimum size allowed is 10000 bytes and any-
thing below this value will be set to it. The maximum size is limited only by the environment in which the program is being run. The
size may have a suffix of k to denote that the size is in kilobytes or m if it is in megabytes. For example, -size 100k will set the
workspace size to 100 kilobytes (102400 bytes) and -size 8m will set it to eight megabytes (8388608 bytes).
-lib FILENAME
Load Basic library FILENAME when the interpreter starts. This option can be repeated as many times as required to load a number of
libraries. This is equivalent to typing INSTALL "FILENAME" at the interpreter's command line. The libraries are loaded in the order
given on the command line. Note that the search order is the reverse of this.
-load FILENAME
Load Basic program FILENAME when the interpreter starts.
-path DIRECTORY[,DIRECTORY]...
This specifies a list of directories that the interpreter will search when looking for libraries and programs. The directory names
are separated by commas. The pseudo-variable FILEPATH$ is set to this value.
-quit FILENAME
Load and run the Basic program FILENAME. Leave the interpreter when the program has finished running.
-chain FILENAME
Load and run the Basic program FILENAME. Remain in the interpreter when the program has finished running.
-graphics
Start the interpreter with the screen in graphics mode in versions of the program which support graphics and the screen can be in
either text or graphics modes.
-ignore
Ignore certain `unsupported feature' errors. By default the interpreter reports an error whenever it comes across a BASIC V feature
that it does not support. This option allows some unsupported features that do not affect the basic running of the program to be
ignored.
FILENAME
This is exactly equivalent to -chain.
The case of the names of the options is ignored. It depends on the operating system under which the interpreter is running as to whether
the names of files are case sensitive or insensitive.
FILES
brandy executable
/usr/share/doc/brandy/examples
example BASIC programs
SEE ALSO
/usr/share/doc/brandy full documentation
Brandy's home page
http://jaguar.orpheusweb.co.uk/branpage.html
There is some very useful documentation for the BBC Micro available on the Internet. One very good site is The BBC Lives! at:
http://www.nvg.ntnu.no/bbc/
or see http://sourceforge.net/projects/brandy/
AUTHOR
David Daniels, with contributions from Darren Salt and Colin Tuckley
REPORTING BUGS
Report bugs to the bug tracker at http://sourceforge.net/projects/brandy
COPYRIGHT
Copyright (c) 2000, 2001 David Daniels. Copyright (c) 2009, 2012 Colin Tuckley. This is free software; see the source for copying condi-
tions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
brandy 1.20pre5 10 Jun 2012 BRANDY(1)