12-10-2013
Not much. I'm searching and reading the whole day but I don't know how to begin. It's difficult to me to understand the whole linux system with STDIN and STDOUT. I'm new with linux. I'm studying and the lessons and tasks we get in Scripting are not very well organised. We must write a script which reads a table like this:
Name \t Size \t Type
bla \t 4711 \t f i l e
abcde \t 4096 \t directory
and then writes a html-table. We got the structure for the html-table because we never worked with html, but it doesn't helps me a lot...it would be easier to explain the task in german...I know for example how to find and extract words from a text with 'sed' but not how I should read a table and convert it.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
For one of my programs, I need to have a hashtable as in Perl. Unfortunately shell doesnt provide any variable like hash. Is there anyway/trick, I could implement a hash in shell (using shell scripts/sed/awk).
JP (2 Replies)
Discussion started by: jyotipg
2 Replies
2. Shell Programming and Scripting
Dear all:
I want to write a script capable of reading specific rows and collumns of a table, into a variable.
Just imagine i have a file named table.dat which contains:
GENERAL INFORMATION
Col 1 Col2 Col3
1 1
2 2
3 3
4 4
What i want to do... (13 Replies)
Discussion started by: luiscarvalheiro
13 Replies
3. Shell Programming and Scripting
I want to add some columns to a existing tables through a shell script.
Please help. (2 Replies)
Discussion started by: ankitgupta
2 Replies
4. Shell Programming and Scripting
Hi All,
I want to connect two tables in DB2 using shell script and then compare the contents of two tables field by field. Could any one please help me in connecting database tables using Unix and retriving data from the same.
Thanks,
Durwas (0 Replies)
Discussion started by: dtidke
0 Replies
5. Shell Programming and Scripting
Hi all,
I need to create a matrix of variable rows and columns. Right now i have 3 rows and two columns and following values.
Output something like
TypeA TypeB
TestCase1 Pass Fail
TestCase2 Pass ... (2 Replies)
Discussion started by: jakSun8
2 Replies
6. Shell Programming and Scripting
I am trying to truncate a table using below script. When I ran the script it runs fine but table was not truncated and the spool is empty. I am not sure what is wrong with pl/sql block.
#!/bin/ksh
# ----------------------------------------------------------------------
#
# Created by: XXXX... (2 Replies)
Discussion started by: gunaah
2 Replies
7. Shell Programming and Scripting
Hi,
Can anyone tell me that, How to create table in Oracle database through shell script(ksh).
Table contains 3 fields,
1] Emp ID, String, primary key
2] Name, String
3] B Date, date.
Thanks in advance. (6 Replies)
Discussion started by: Poonamol
6 Replies
8. Shell Programming and Scripting
Hi, unix gurnis
I need help for following requirement for writing a shell scritp.
log in to oracle database, query one table total records (select count(*) from table1), pass the return value to a file.
Thanks in advance (2 Replies)
Discussion started by: ken002
2 Replies
9. Homework & Coursework Questions
input file txt file
2000 1 name
2000 2 addr
2000 3 phone
2000 4 email
1000 1 name
1000 2 addr
1000 3 phone
1000 4 email
3000 1 name
3000 2 addr
3000 ... (4 Replies)
Discussion started by: senmatrix
4 Replies
10. Shell Programming and Scripting
Hi,
I'm an amateur and need your help in figuring this out. I have been asked to connect to a prod db from non-prod env., and download a table from prod db to non-prod env.
I was able to connect to the prod db and then run a simple query as below.
@@@@@@@@@@
... (7 Replies)
Discussion started by: arunpvp
7 Replies
LEARN ABOUT CENTOS
psfxtable
PSFXTABLE(1) General Commands Manual PSFXTABLE(1)
NAME
psfxtable - handle Unicode character tables for console fonts
SYNOPSIS
psfxtable [-i infont] [-o outfont] [-it intable] [-ot outtable] [-nt]
DESCRIPTION
psfxtable handles the embedded Unicode character table for .psf format console fonts. It reads a font and possibly a table and writes a
font and/or a table. psfaddtable(1), psfgettable(1) and psfstriptable(1) are links to it.
Each of the filenames infont, outfont, intable, and outtable may be replaced by a single dash (-), in which case standard input or standard
output is used. If no -i option is given, the font is read from standard input. If no -it or -o or -ot option is given, no input table is
read or no output font or output table is written.
By default the output font (if any) will have a Unicode table when either the input font has one, or an explicit table (which overrides an
input font table) has been provided. The option -nt causes output of a font without table. When outfont is requested it will get a psf1
header when infont has a psf1 header and intable does not have sequences and a psf2 header otherwise.
SEE ALSO
setfont(8), psfaddtable(1), psfgettable(1), psfstriptable(1)
9 Dec 1999 PSFXTABLE(1)