04-11-2013
What OS are you on?
Did you look at what you created with mkdir? (use ls -l ...)
Isnt there something wrong?...
Since a script is a text file, yes you will have to use vi... but I am not sure about tables for you seem only to begin so what you call tables I understand as "files" now its up to you to say how the the fields are separated...
A script will not be executable just like that so look at chmod command, and the commands you put in a shell script are not vi internals but true unix commands so read again your notes so far on the commands you already know and submit to us a beginning of script so we can do our comments if you wish...
You will need variables to store what people have typed
(hint: you will need read command, so look what it does in a shellscript...)
You will have to display your screen, what command do you use for that?
Once someone entered values in your variables, you will want to write their content in a file...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone,
I want to write a function which calculates the space needed between fields, to generate a table with aligned fields, like when you type "ls -l", the operating system generates a table with beautifully aligned fields.
I've got this code so far:
for line in $(cat tmpSearch)... (2 Replies)
Discussion started by: Aveltium
2 Replies
2. Shell Programming and Scripting
Hi
Can we create a rectangular table as i have attached in the query .
This is primarily for populating the created table with data gathered .
Hope I made myself clear ...
Pls suggest
Thanks (1 Reply)
Discussion started by: ultimatix
1 Replies
3. Shell Programming and Scripting
Hi there,
im a beginner to the shell scripting.i trying to extract a table from a db(IMD) and i have to get the count of that table and size of the file.
can you help me out how to write the shall scriping for the above query. (2 Replies)
Discussion started by: pawanmamidi
2 Replies
4. Shell Programming and Scripting
Okay. I've been charged with an assignment to create tables.
I "Made" a manufacturing company called "Suit and Tie". I need subdirectories for the company, using three departments: Human resources, Manufacturing, and Sales.
1) mkdir Suit_and_Tie
2) cd Suit_and_Tie
3) mkdir Human... (3 Replies)
Discussion started by: Catori
3 Replies
5. Shell Programming and Scripting
My Code is
get_week_date()
{
`sqlplus -s ${DQM_SQL_LOGON}@${DQM_SID} << EOF
SET ECHO OFF
SET FEEDBACK OFF
SET PAGES 0
SET SERVEROUTPUT ON
SET VERIFY OFF
SET TRIMSPOOL ON
(update file_level_qc fq set FQ.DATA_FILE_NAME='Hyvee_Pharmacy_Solutions_201304_v1.txt'... (2 Replies)
Discussion started by: karthick.cho
2 Replies
6. Shell Programming and Scripting
I have written a shell script that calls below sql file. It is not sending the query data in table in the body of email.
spool table_update.html;
SELECT * FROM PROCESS_LOG_STATS where process = 'ActivateSubscription';
spool off;
exit;
Please use code tags next time for your code and data.... (9 Replies)
Discussion started by: Sharanakumar
9 Replies
7. Shell Programming and Scripting
Below is my code where i tried using table tag to print out put in table but its not working
#!/bin/ksh
#] && . ./.profile 2>/dev/null
if test -f '.profile'; then . ./.profile; fi;
#. .profile
LOG_DIR=/app/rpx/jobs/scripts/just/logs
sendEmail()
{
pzCType="$1";... (5 Replies)
Discussion started by: ankit.mca.aaidu
5 Replies
8. UNIX for Advanced & Expert Users
LOG_DIR=/app/rpx/jobs/scripts/just/logs
sendEmail()
{
pzCType="$1"; pzTitle="$2"; pzMsg="$3"; pzFrom="$4"; pzTo="$5"; pzFiles="$6"; pzReplyTo="$7"
(
echo "From: $pzFrom\nTo: $pzTo\nSubject: $pzTitle${pzReplyTo:+\nReply-To: $pzReplyTo}"
] && echo... (1 Reply)
Discussion started by: ankit.mca.aaidu
1 Replies
9. Forum Support Area for Unregistered Users & Account Problems
Hi,
I am trying to create a table through shell scripting . I used a command sqlplus -s to connect to sqlplus and user as sysdba. but there is a problem in it. can anyone please solve this .
#!/bin/bash
$(`sqlplus -s / as sysdba <<eof
create table sample (id,int);
insert into sample... (1 Reply)
Discussion started by: Unregistered
1 Replies
10. Web Development
Bootstrap is great; but we have had some issues with Bootstrapped <tables> (and legacy <fieldset> elements) showing annoying, wayward lines. I solved that problem today with this simple jQuery in the footer:
<script>
$(function(){
$('tr, td, fieldset,... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT DEBIAN
marc::charset::table
MARC::Charset::Table(3pm) User Contributed Perl Documentation MARC::Charset::Table(3pm)
NAME
MARC::Charset::Table - character mapping db
SYNOPSIS
use MARC::Charset::Table;
use MARC::Charset::Constants qw(:all);
# create the table object
my $table = MARC::Charset::Table->new();
# get a code using the marc8 character set code and the character
my $code = $table->lookup_by_marc8(CYRILLIC_BASIC, 'K');
# get a code using the utf8 value
$code = $table->lookup_by_utf8(chr(0x043A));
DESCRIPTION
MARC::Charset::Table is a wrapper around the character mapping database, which is implemented as a tied hash on disk. This database gets
generated by Makefile.PL on installation of MARC::Charset using MARC::Charset::Compiler.
The database is essentially a key/value mapping where a key is a MARC-8 character set code + a MARC-8 character, or an integer representing
the UCS code point. These keys map to a serialized MARC::Charset::Code object.
new()
The consturctor.
add_code()
Add a MARC::Charset::Code to the table.
get_code()
Retrieve a code using a hash key.
lookup_by_marc8()
Looks up MARC::Charset::Code entry using a character set code and a MARC-8 value.
use MARC::Charset::Constants qw(HEBREW);
$code = $table->lookup_by_marc8(HEBREW, chr(0x60));
lookup_by_utf8()
Looks up a MARC::Charset::Code object using a utf8 value.
db()
Returns a reference to a tied character database. MARC::Charset::Table wraps access to the db, but you can get at it if you want.
db_path()
Returns the path to the character encoding database. Can be called statically too:
print MARC::Charset::Table->db_path();
brand_new()
An alternate constructor which removes the existing database and starts afresh. Be careful with this one, it's really only used on
MARC::Charset installation.
perl v5.12.4 2010-09-09 MARC::Charset::Table(3pm)