Is it imperative that the native charset remain in tact on the destination side?
If that is the case: Can you set the locale of the process doing the copy to match what is on the disc? If you do this every app you run against your will have to be set to use that special locale.
Otherwise use tar and iconv
[conversion options here] == you need to supply this.
I like to know how to print accent when use the command lp -d <file>.
This <file> contain the following accents (e.g. é, á, ê, ã, ç) and anothers accents, please i need to help.
thank´s (0 Replies)
I have a problem with the script below
#!/bin/sh
for vo in `find -maxdepth 1 -type f -regex "^\./*$"`
do
ls -l "$vo"
some other commands
done
It works fine until `find ...` returns files with spaces. I've tryed to change IFS but haven't succeed
Any solutions? (4 Replies)
Hi, I would like to know how could I remove accentes and the symbols: º and ª of a text file with sed. Whis this command doesn't works :-( sed "s/í/i/g" filename Many thanks and sorry for my english! (7 Replies)
I'm trying to figure out how to support Unicode or atleast an unsigned char in the d_name of struct dirent
The problem i'm facing is that I'm checking file names for special characters and obviously the "char d_name" doesn't like it. I'm looping through the directory and getting the file... (3 Replies)
Hi
I need to pull out the name of the file from the path.
See, here is my loop that gets the files:
dsxdir="/var/local/dsx/import"
for dsxfile in $dsxdir/*.dsx;
do
dsxlog $reverb --info --module="$module" "$dsxfile"
$dsximp $norule $oprange --dsn=$dsn --dbname=$dbname... (6 Replies)
I have 7 files with 7 different names coming into a specified folder on weekly basis, i need to pick a file one after another and load into oracle table using sql loader. I am using ksh to do this. So in the process if the file has error records and if sql loader fails to load into oracle tables,... (0 Replies)
Hi Folks,
I'm looking for some ideas on how to change some file names. I'm pretty sure I need to use sed or awk but they still escape me. The files I have are like:
VOD0615 NEW Blades R77307.pdf or
VOD0615_NEW_Blades_R77307.pdf
and what I want after processing is:
R77307 NEW Blades.pdf
... (5 Replies)
i excuted filemon with filemon -u -o /tmp/filemon.out -O all;sleep 60; trcstop.
everything is ok, but i only get PID for filenames in Most Active Files.
is there any different flags i need to use to get filenames?
Code tags please, thanks. (3 Replies)
Hi.
I'm trying to get the names of files from a log file, without the path and special characters.
I have a file that contains lines like this:
'/path/to/files/file00010000070874.EXT'
'/path/to/files/file00010000070875.EXT'
'/path/to/files/file00010000070876.EXT'... (4 Replies)
Hi,
In my previous post I looked for timestamp to be added to the filename
https://www.unix.com/shell-programming-scripting/230603-how-append-timestamp-filenames-using-find.html
Now how do I select those files that do not have timestamp in the filenames.
I tried the following. My file has... (3 Replies)
Discussion started by: bobbygsk
3 Replies
LEARN ABOUT FREEBSD
archive_read_set_options
ARCHIVE_READ_OPTIONS(3) BSD Library Functions Manual ARCHIVE_READ_OPTIONS(3)NAME
archive_read_set_filter_option, archive_read_set_format_option, archive_read_set_option, archive_read_set_options -- functions controlling
options for reading archives
LIBRARY
Streaming Archive Library (libarchive, -larchive)
SYNOPSIS
int
archive_read_set_filter_option(struct archive *, const char *module, const char *option, const char *value);
int
archive_read_set_format_option(struct archive *, const char *module, const char *option, const char *value);
int
archive_read_set_option(struct archive *, const char *module, const char *option, const char *value);
int
archive_read_set_options(struct archive *, const char *options);
DESCRIPTION
These functions provide a way for libarchive clients to configure specific read modules.
archive_read_set_filter_option(), archive_read_set_format_option()
Specifies an option that will be passed to currently-registered filters (including decompression filters) or format readers.
If option and value are both NULL, these functions will do nothing and ARCHIVE_OK will be returned. If option is NULL but value is
not, these functions will do nothing and ARCHIVE_FAILED will be returned.
If module is not NULL, option and value will be provided to the filter or reader named module. The return value will be that of the
module. If there is no such module, ARCHIVE_FAILED will be returned.
If module is NULL, option and value will be provided to every registered module. If any module returns ARCHIVE_FATAL, this value
will be returned immediately. Otherwise, ARCHIVE_OK will be returned if any module accepts the option, and ARCHIVE_FAILED in all
other cases.
archive_read_set_option()
Calls archive_read_set_format_option(), then archive_read_set_filter_option(). If either function returns ARCHIVE_FATAL,
ARCHIVE_FATAL will be returned immediately. Otherwise, greater of the two values will be returned.
archive_read_set_options()
options is a comma-separated list of options. If options is NULL or empty, ARCHIVE_OK will be returned immediately.
Calls archive_read_set_option() with each option in turn. If any archive_read_set_option() call returns ARCHIVE_FATAL, ARCHIVE_FATAL
will be returned immediately.
Individual options have one of the following forms:
option=value
The option/value pair will be provided to every module. Modules that do not accept an option with this name will ignore it.
option The option will be provided to every module with a value of ``1''.
!option
The option will be provided to every module with a NULL value.
module:option=value, module:option, module:!option
As above, but the corresponding option and value will be provided only to modules whose name matches module.
OPTIONS
Format iso9660
joliet Support Joliet extensions. Defaults to enabled, use !joliet to disable.
rockridge
Support RockRidge extensions. Defaults to enabled, use !rockridge to disable.
ERRORS
Detailed error codes and textual descriptions are available from the archive_errno() and archive_error_string() functions.
SEE ALSO tar(1), libarchive(3), archive_write_set_options(3), archive_read(3)BSD February 2, 2012 BSD