This is the first time I have to struggle with UTF>8 chars, so I'm feeling a bit overstrained, and you should take my proposal as a mere direction indicator. On top, both your input files have trailing blanks that I removed. If they are needed, you have to insert special action into the code. Here's my meek approach:
The trailing commas are due to the insufficient attempt to separate chinese syllables which I didn't bother to remove - I'm sure you have better means in your locale!
hello friends
Please tell me where can I get good documentation for shell programming and examples for shell programming. Please try to help me..
with rgds,
varma (2 Replies)
Hello All,
I'm applying for a new job in telecommunications and have been asked to learn unix and pearl scripting. I've got a copy of knoppix Linux 03. I at this point only know how to list files, create directories, change permissions. I was instructed to learn how to create files, basic... (3 Replies)
I have a sort of complex problem that I just can't figure out. I have data coming into a ksh program in a format that I need to parse out and display into a different format into a text file for printing. I have figured out how to get all the data in the format I need it in for the text file. The... (6 Replies)
Hello all,
I am currently try to learn the linux operating system as well as some bash programming. I have come across some online course work which has been very helpful, I have been working through some assignments and since I have no teacher to ask I have come to you experts.
So the... (6 Replies)
Hi, Very new to linux but I've just recently setup an ubuntu server.
I have 2 broadband connections and would like to have fallback on the server should one of the lines fail.
I know what I want it to do, but dont know how to script it.
heres the senario;
ubuntu server with 2 ethernet... (0 Replies)
I am trying to make a script for my Counter-Strike: Source servers. What i am wanting it to do is for it to restart each server, the only way i can think of doing this in through for each.
Years what i have at the moment.
server_start() {
START=`ps x | grep SCREEN | grep $SRV | cut -d '?' -f... (5 Replies)
Hi!
I have two shell scripts - Script1, Script2
Script1, Script2 - have return parameter
Script1 - is calling Script2
in Script2 I am calling program sqlldr - if this program is called then I did not get the return parameter from Script1
Do You have any idea how can I avoid this problem.
Mroki (6 Replies)
Hi Folks,
I have a perl line that looks like this and it works fine as is, but I need it to expand a bid further.
perl -aF, -ne 'printf "conf zone %2\$s delete host %s,,,$F\n",split/\./,$F,2 if /^hostrecord/ &&/\b10\.8\.(|1)\.\d/' hosts.csv
this code the way it is does this
10.8.3.0... (10 Replies)
So guys basically I was really sick and couldn't attend the labs and lectures and I went to my lecture hoping he would say ok I will help you from the start but he just said google it. So If it's possible to make the assignment and explain more in detail why is that would be really helpfull.
I can... (1 Reply)
Discussion started by: Joola94
1 Replies
LEARN ABOUT ULTRIX
file
file(1) General Commands Manual file(1)Name
file - determine file type
Syntax
file [ -c ] [ -f ffile] [ -m mfile] filename ...
Description
The command performs a series of tests on each filename argument in an attempt to classify it. If an argument appears to be ASCII, the
command examines the first 1024 bytes and tries to guess its language.
For character special files, part of this classification is information about which devices the system shows as active. In particular,
device-specific information such as controller type and unit, device type and unit, and status (offline, write locked, density, errors) is
returned. The general categories currently implemented are disk, tape, and terminal devices. The supported terminal devices include Local
Area Terminals (LAT) but not Local Area Network (LAN) pseudo-terminals.
The command uses the file to identify files that have some sort of magic number. A magic number is any numeric or string constant that
identifies the file containing the constant. Commentary at the beginning of explains its format.
Options-c Checks the magic file for format errors by printing the internal representation of the magic file. No file typing is done under -c.
-f Interprets the following argument to be a file containing the names of the files to be examined.
-m Instructs file to use an alternate magic file.
Restrictions
It often does a poor job of distinguishing C programs, shell scripts, English text, and ASCII text.
It does not recognize many programming languages, including Modula, Pascal, and Lisp.
Files
/usr/lib/file/magic
See Alsomagic(5)file(1)