I have been given a shell script that I need to amend. To do the following
extract the filename from the flag file by removing the .flag extension.
It is this line I am struggling with I need to remove the file extension from the flag file to get the actual file name that I am going to process with SQL Loader further down the script this would be fine if the two files looked like this
myfile.flag
myfile
But my files look like this
myfile.001.002.flag
myfile.001.002
It is this string that I am trying to get "myfile.001.002"
What could I do to extract the filename when it has multiple dot?
With this I get myfile not myfile.001.002
Last edited by vbe; 08-08-2013 at 06:35 AM..
Reason: code tags
Hi All
I have a file of the following format (delimited by |)
this is field 1 | field 2 (lots of blank spaces) | field 3 (lots of blank space) |
field 1 | more text (lots of blank spaces) | dhjdsk |
Is there a way I can remove... (6 Replies)
We have a large number of oracle database related scripts that utilize the environment variables $ORACLE_SID and $DBNAME. In a single instance database the $ORACLE_SID is the same as the database name $DBNAME. So we have simply set DBNAME = $ORACLE_SID. However, now that we are clustering with RAC,... (5 Replies)
Hi All,
I have a file with the following contents with multiple lines
172445957| 000005911|8| 400 Peninsula Ave.#1551 | And,K |935172445957|000005911
607573888 |000098536 | 2|Ane, B |J |Ane |1868 |19861206|20090106|20071001
I want to trim the "leading and trailing spaces only" from... (2 Replies)
So, I can't figure out how to do a previous question with printf, so I'm taking a different approach. Suppose I have a set of numbers:
1200,135.000000,12.30100,3212.3200,1.759403,,1230,101.101010,100.000000
I want to remove all trailing zeroes after the decimal, and, if it ends up orphaned,... (8 Replies)
Hello All,
I have a csv file with 3 columns. The file which looks like this
47850000,100,233
23560000,10000,456
78650000,560000,54
34000000,3456,3
The first column has 4 trailing zeros. I have to remove 4 trailing zeroes from 1st field. The output file should appear as follows.
... (12 Replies)
Hi
I have 3 files (say) in a folder as in the example below
abc_01012011.csv
def_01012011.csv
xyz_01012011.csv
I need to move these files to a different folder as follows
abc.csv
def.csv
xyz.csv
I am trying to put together a script with a for loop which reads the source filenames... (5 Replies)
Hi all,
I haven't needed to do any shell based editing for nearly 20 years, and no amount of searching around has found me a solution to this very simple problem :-(
I have a csv file.
Some lines have three commas at the end. This means the invoice hasn't been paid.
I'd like to use sed / grep... (4 Replies)
I have been trying to remove empty lines and lines just filled with spaces. I have used the following command which does work.
sed -i "/^\s*$/d"
Except it leaves one single trailing line at the very end of the file. For the life of me I cant figure out why I cant remove that last trailing... (2 Replies)
Discussion started by: user8282892
2 Replies
LEARN ABOUT DEBIAN
ale
ALE(1)ALE(1)NAME
ale - a synthetic capture engine and renderer
SYNOPSIS
ale [OPTIONS] original-frame [supplemental-frames ...] output-file
ale [HELP OPTIONS]
ale --version
DESCRIPTION
ALE is a free software synthetic capture engine and renderer accepting, as input, a sequence of image frames, and producing, as output,
rendered images, registration data, and 3D models (currently experimental).
EXAMPLES
ale --hu
Print the help page on program usage.
ale 001.ppm 002.ppm 003.ppm out.ppm
Render output file out.ppm from inputs 001.ppm, 002.ppm, and 003.ppm.
ale --scale 2 001.ppm 002.ppm 003.ppm out.png
Render output file out.png at 2x scale.
ale --perturb-upper=0 --trans-load=a.t --projective frame*.png out.png
Render output file out.png from inputs frame*.png, using projective transformations as described in the file a.t.
ale --3dv 0 out.png --projective frame*.png null:
Render output file out.png from inputs frame*.png, using a 3D scene model to determine transformations.
ale --visp last:sinc*lanc:6 sf:0 out/ .jpg in/*.jpg null:
Render a video stream from files in/*.jpg to the directory out/, stabilizing to the first frame, with a lanczos-windowed sinc filter.
USAGE
ale is a wrapper script that calls the executable ale-bin after extracting exposure EXIF information from image files (when the exiftool
utility is available) and converting from raw formats (when the dcraw utility is available).
When ale-bin has been linked with ImageMagick, input and output files may be of any kind supported by ImageMagick. Otherwise, only PPM
files can be read and written by ale-bin.
OPTIONS
OPTIONS are summarized via built-in help pages (see HELP OPTIONS below). More detailed manuals describing options and internal algorithms
are available for certain versions of ALE. See SEE ALSO below for more details on other manuals.
HELP OPTIONS
A listing of available help options can be obtained by invoking ale --hu.
ENVIRONMENT
The wrapper script ale recognizes the following environment variables:
ALE_BIN
ALE executable to use.
DCRAW
dcraw raw extraction tool to use.
EXIF_UTILITY
EXIF extraction utility to use.
ALE_COUNT_THREADS
Displays statistics on thread counts when set to a non-zero value.
PAGER
Text pager to use (e.g., for displaying help pages).
SEE ALSO
More detailed manuals for certain versions of ALE are distributed with source packages, and may also be available from:
http://auricle.dyndns.org/ALE/manuals/
03/31/2009 ALE(1)