Hi,
I have a requirement that i need to store only the filename without its extension. Can anyone please help me to do this.
For Example, i have stored the filename in a varialble called fname. I need to extract all the charecters before the first occurence of the dot.
If fname has value... (3 Replies)
Hi,
Any help on this would be very appreciated.
I capture the full path & filename in a variable like (varFile=/home/user/extfile.txt). Now in my shell script I have to use only the filename part i.e. extfile.txt. How do I extract only the filename part from the variable?
Thanks in... (3 Replies)
I am trying to write a script that prompts users for date and time, then process the gzip file into awk. During the ksh part of the script another file is created and needs to be processed with a different set of pattern matches then I need to combine the two in the end. I'm stuck at the part... (6 Replies)
Hi,
I need to extract the file name without filetype.
Suppose in DIR1 if i have files like F1.txt and F2.DOC then i need to return F1 and F2 only with out file types (txt and DOC).
I tried with the following code
newname = ` $i | cut -d "'." -f1`
but it is giving the error " 0403-006... (1 Reply)
Hi,
I am a beginner in Unix so please bear with me...
I have a directory which has files in format: RECF-YYYY-MM-DD-input. For example, RECF-2008-02-25-input. I need to extract the YYYYY-MM-DD substring from this filename and convert that into date and compare it with a date. How do I do that?... (7 Replies)
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
hi all,
I'm trying to automate some tasks and while I've got the script itself working, I'm having difficulties with automatic file detection and associated variable setting...
for example, in a directory I've got several files... something along the lines of:
xis0_NAME_src.file... (2 Replies)
Hi All,
Thanks in Advance
I am working on a shell script. I need some assistance.
My Requirement:
1) There are some set of files in a directory like given below
OTP_UFSC_20120530000000_acc.csv
OTP_UFSC_20120530000000_faf.csv
OTP_UFSC_20120530000000_prom.csv... (0 Replies)
Hi All,
Thanks in Advance
I am working on a shell script. I need some assistance.
My code:
if
then
set "subscriber" "promplan" "mapping" "dedicatedaccount" "faflistSub" "faflistAcc" "accumulator"\
"pam_account";
for i in 1 2 3 4 5 6 7 8;... (0 Replies)
Hi
I would like to extract the first portion of filename from a list of files.
The filename pattern is of the form 123456789_TEXT_TEXT_TEXT_.csv. I want to extract just the numerical portion of this filename from the list of files and then output this into another text file.
K (6 Replies)
Discussion started by: kamal_p_99
6 Replies
LEARN ABOUT CENTOS
icupkg
ICUPKG(8) ICU 50.1.2 Manual ICUPKG(8)NAME
icupkg - extract or modify an ICU .dat archive
SYNOPSIS
icupkg [ -h, -?, --help ] [ -tl, --type l | -tb, --type b | -te, --type e ] [ -c, --copyright | -C, --comment comment ] [ -a, --add list ]
[ -r, --remove list ] [ -x, --extract list ] [ -l, --list ] [ -s, --sourcedir source ] [ -d, --destdir destination ] [ -w, --writepkg ] [
-m, --matchmode mode ] infilename [ outfilename ]
DESCRIPTION
icupkg reads the input ICU .dat package file, modify it according to the options, swap it to the desired platform properties (charset &
endianness), and optionally write the resulting ICU .dat package to the output file. Items are removed, then added, then extracted and
listed. An ICU .dat package is written if items are removed or added, or if the input and output filenames differ, or if the -w,
--writepkg option is set.
If the input filename is "new" then an empty package is created. If the output filename is missing, then it is automatically generated
from the input filename. If the input filename ends with an l, b, or e matching its platform properties, then the output filename will con-
tain the letter from the -t, --type option.
This tool can also be used to just swap a single ICU data file, replacing the former icuswap tool. For this mode, provide the infilename
(and optional outfilename) for a non-package ICU data file. Allowed options include -t, -w, -s and -d The filenames can be absolute, or
relative to the source/dest dir paths. Other options are not allowed in this mode.
OPTIONS -h, -?, --help
Print help about usage and exit.
-tl, --type l
Output for little-endian/ASCII charset family. The output type defaults to the input type.
-tb, --type b
Output for big-endian/ASCII charset family. The output type defaults to the input type.
-te, --type e
Output for big-endian/EBCDIC charset family. The output type defaults to the input type.
-c,--copyright
Include the ICU copyright notice in the resulting data.
-C, --comment comment
Include the specified comment in the resulting data instead of the ICU copyright notice.
-a, --add list
Add items from the list to the package. The list can be a single filename with a .txt file extension containing a list of item file-
names, or an ICU .dat package filename.
-r, --remove list
Remove items from the list from the package. The list can be a single filename with a .txt file extension containing a list of item
filenames, or an ICU .dat package filename.
-x, --extract list
Extract items from the list from the package. The list can be a single filename with a .txt file extension containing a list of item
filenames, or an ICU .dat package filename.
-m, --matchmode mode
Set the matching mode for item names with wildcards.
-s, --sourcedir source
Set the source directory to source. The default source directory is the current directory.
-d, --destdir destination
Set the destination directory to destination. The default destination directory is the current directory.
-l, --list
List the package items to stdout (after modifying the package).
LIST FILE SYNTAX
Items are listed on one or more lines and separated by whitespace (space+tab). Comments begin with # and are ignored. Empty lines are
ignored. Lines where the first non-whitespace character is one of "%&'()*+,-./:;<=>?_ are also ignored to reserve for future syntax.
Items for removal or extraction may contain a single * wildcard character. The * matches zero or more characters. If -m, --matchmode
noslash is set, then the * character does not match the / character.
Items must be listed relative to the package, and the --sourcedir or the --destdir path will be prepended. The paths are only prepended to
item filenames while adding or extracting items, not to ICU .dat package or list filenames.
Paths may contain / instead of the platform's file separator character and are converted as appropriate.
AUTHORS
Markus Scherer
George Rhoten
VERSION
1.0
COPYRIGHT
Copyright (C) 2006 IBM, Inc. and others.
SEE ALSO pkgdata(1)genrb(1)ICU MANPAGE 18 August 2006 ICUPKG(8)