07-25-2011
Thanks yazu,
But for success also am getting 1.
Thats the issue.
Thanks,
Manoj
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Greetings-
are there any pitfalls/costs/etc to be aware of using the "$dos2unix <filename>" utility in Solaris 8? does it really work as simply as it's described / recommended in other threads ?
We want to establish the procedure / develop a script or procedure to automatically strip out ^M... (1 Reply)
Discussion started by: gsumers22texas
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
like to ask why when i tried to run my .sh file to convert maybe a text file using dos2unix -ascii ${DATAFILE5} ${DATAFILE5} i got an error saying :
could not open /dev/kbd to get keyboard type US keyboard assumed
could not get keyboard type US keyboard assumed
Is it because we dun like... (4 Replies)
Discussion started by: blueberry80
4 Replies
3. Linux
Hi All,
I want to use the command "dos2unix" to format the file line break from win to unix,
but after changing the file permission has been change to 600.
how can i keep the original permisson after formatting?
Many thz (2 Replies)
Discussion started by: eric_wong_ch
2 Replies
4. UNIX for Dummies Questions & Answers
hi,
what is the dos2unix equivalent in hpunix ?? (10 Replies)
Discussion started by: risshanth
10 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Does anyone know, how to use dos2unix command for binary files? When i am using the command, the binary file gets converted to ASCII file. I want binary file to remain in the binary format. (4 Replies)
Discussion started by: agarwal
4 Replies
6. Shell Programming and Scripting
hi,
need some urgent inputs.....
I have a folder, which has both files and directories as its contents.
I want to convert all the files (Excluding the directories) from dos to unix mode using the command 'dos2unix'.....
please can any one help me in providing the command to convert... (3 Replies)
Discussion started by: cmaroju
3 Replies
7. Shell Programming and Scripting
hi friends i am using the dos2unix command to remove the ^M characters coming at the end of each line , but i getting the folowing message:
> dos2unix file.sql
could not open /dev/kbd to get keyboard type US keyboard assumed
could not get keyboard type US keyboard assumed
---------file... (6 Replies)
Discussion started by: neelmani
6 Replies
8. UNIX for Advanced & Expert Users
Hi,
I was trying to dos2unix a file that has some special characters but dos2unix converted those into different format. I am working on sun server.
I guess the default for dos2unix on sun server is ISO format .
Can i change the format so that it does the conversion in UTF format?
Because I... (3 Replies)
Discussion started by: abhi1988sri
3 Replies
9. Shell Programming and Scripting
Hi,
I have to test to see if dos2unix is installed on the machine. Right now I am typing in dos2unix and hitting ctrl C. Is there a better workaround for this. If dos2unix is there is need to print the statement saying its there and vice versa. How can i accomplish this.
thank you in... (1 Reply)
Discussion started by: tarreddy
1 Replies
10. Red Hat
Hi, upgraded one of the server to RHEL7. A Shell script uses dos2unix to convert EOL characters to Linux format and checks return code. In RHEL6, if conversion fails shell script returns code 1 where as if conversion fails in RHEL7 script returns return code 13. Is it possible to change RHEL7... (6 Replies)
Discussion started by: Satyak
6 Replies
UCFQ(1) User Contributed Perl Documentation UCFQ(1)
NAME
ucfq - query the ucf database
SYNOPSIS
usage: ucfq [options] (/path/to/file|package)[/path/to/file|package ...]
OPTIONS
--help h Print out a usage message.
--debug -d Turn on debugging mode.
--verbose -v Make the script more verbose..
--with-colons -w
Normally, the script presents the information in a human readable tabular format, but that may be harder for a machine to parse. With
this option, the output is a compact, colon separated line, with no dividers, headers, or footer.
--state-dr dir
Set the state directory to "/path/to/dir" instead of the default "/var/lib/ucf". Used mostly for testing.
DESCRIPTION
This script takes a set of arguments, each of which is a package name (and thus does not contain a /) or a full path to a configuration
file, and outputs the associated package, if any, if the file exists on disk, and whether it has been modified by the user. The output is
either a human readable tabular form, or a compact colon-separated machine friendly format.
This script can potentially be used in package "postrm" scripts during purge to query the system for configuration files that may still
exist on the system, and whether these files have been locally modified by the user -- assuming that the package registered all the config-
uration files with ucf using "ucfr".
CAVEATS
This is very inchoate, at the moment, and needs testing.
BUGS
None Known so far.
AUTHOR
Manoj Srivastava <srivasta@debian.org>
COPYRIGHT AND LICENSE
This script is a part of the Ucf package, and is
Copyright (c) 2006 Manoj Srivastava <srivasta@debian.org>
This program is free software; you can redistribute it and / or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
perl v5.8.8 2006-04-16 UCFQ(1)