02-10-2009
convert file to unix
first convert the windows file to unix format using
tr -d '\r' < infile > outfile
or
dos2unix infile > outfile
then process.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everyone,
this question is probably simple for you ppl but i am jus a beginner and still learing. i was wondering if someone could tell me that how does unix identify different program codes in it's environment.
for example, unix recognises this C code in the body of any script. how... (2 Replies)
Discussion started by: a25khan
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
I have a IP address of the target machine.Is there is any way to find out whether it is a unix box or windows box without logging into it?.
Regs
Anand (5 Replies)
Discussion started by: u449064
5 Replies
3. UNIX for Dummies Questions & Answers
Like many UNIX users, there is a small team that is connected to UNIX (under the same UNIX user) via putty from a Windows PC.
Is there a way, once under UNIX, to know the address of the originating computer or anything that can differentiate initial users ? (7 Replies)
Discussion started by: popescu1954
7 Replies
4. Shell Programming and Scripting
I have high values (such as ÿÿÿÿ) in a text file contained in an Unix AIX server. I need to identify all the records
which are having these high values and also get the position/column number in the record structure if possible. Is there
any Unix command by which this can be done to :
1.... (5 Replies)
Discussion started by: devina
5 Replies
5. Programming
Hi,
We are accessing our remote webserver using libcurl.We are using GET method to post the request.The request is a simplified URL.We will receive XML Response for the URL request.
Problem
For Few Scenarios, response for the URL request is received & our component is killed abruptly. Can... (11 Replies)
Discussion started by: banus
11 Replies
6. UNIX for Dummies Questions & Answers
I am a newbie to unix and appeared for an interview and was asked this question.
If i was working for a company as a support person on an application and has to monitor the logs how would i determine if there was outage by checking the logs and where would i search for the issue initially. and... (2 Replies)
Discussion started by: praveenveerla
2 Replies
7. AIX
Hi All, Need an urgent help, I have a requirement to find long running unix processes.. I have tried the below commands, but not succeed. I need to arrange the unix processess in an order of elapsed time (high to low) that runs in a system.
For Eg:
Consider we have 3 processes,
Pid 1
pid 2... (5 Replies)
Discussion started by: mohamedirfan
5 Replies
8. Shell Programming and Scripting
Hi All,
I have the below scenario in my environment
Developers used to copy file from windows to Linux box. Some time on the copied file developers miss to run the dos2unix utility. Because of this script gets failed during the execution. Most of the failures are due to the dos2unix format... (7 Replies)
Discussion started by: kalpeer
7 Replies
9. Shell Programming and Scripting
hi,
The function
open(OUTPUT, ">$output_filename"); #opens the file in (DOS) windows mode.
how to open the output file in unix mode.
please suggest.
thanks. (10 Replies)
Discussion started by: Rashid Khan
10 Replies
10. Shell Programming and Scripting
Hi,
I have a huge unsorted text file. We wanted to identify the unique field values in a line and consider those fields as a primary key for a table in upstream system.
Basically, the process or script should fetch the values from each line that are unique compared to the rest of the lines in... (13 Replies)
Discussion started by: manikandan23
13 Replies
LEARN ABOUT MOJAVE
make_socksfc
MAKE_SOCKSFC(8) System Manager's Manual MAKE_SOCKSFC(8)
NAME
make_socksfc - Generates frozen configuratyion file for SOCKS clients
SYNOPSIS
make_socksfc [infile [outfile] ]
DESCRIPTION
make_socksfc reads in a plain-text configuration file for the SOCKS clients and produces a frozen configuration file as the output.
Both arguments are optional. The default for infile is /etc/socks.conf; the default for outfile is /etc/socks.fc. You may specify infile
while omitting outfile, but you cannot specify outfile without also speficying infile.
The contents of the frozen configuration file is essentially the memory image of the parsed input file. Using the frozen configuration file
can reduce the start-up delay of the SOCKS client programs since they no longer have to parse the file contents.
When the SOCKS client starts, it always looks for the frozen configuration file /etc/socks.fc first . If that file is not found, it then
tries to use the plain-text configuration file /etc/socks.conf. If you use frozen configuration, you must remember to run make_socksfc
every time after you modify the plain-text file or the SOCKS clients will continue to use the frozen file of a previous configuration.
To find out the contents of a frozen configuration file, use dump_socksfc.
FILES
/etc/socks.fc, /etc/socks.conf
SEE ALSO
dump_socksfc(8), socks.conf(5), socks.fc(5)
AUTHOR
Ying-Da Lee, yingda@esd.sgi.com or yingda@best.com
May 6, 1996 MAKE_SOCKSFC(8)