Sponsored Content
Top Forums Shell Programming and Scripting How to have semicolon at the end of every line? Post 302843773 by reignangel2003 on Thursday 15th of August 2013 01:57:58 AM
Old 08-15-2013
this is so because i wanted to create a script that will output a create table statement that will be run using isql.

for the semicolon (';'), this should be comma(,). Please see updated output:

Code:
desc AEXEO.ZZ_APL_TIDTYPELIST
(
TID          NUMBER,
INSTYPE      VARCHAR2(3)
);

desc AEXEO.ZZ_CAM_AEORDER
(
ORDER_ID      NUMBER
);

desc AEXEO.ZZ_CAM_AETID
(
TID                          NUMBER,
INSTRUMENT_GROUP_ABBREV      CHAR(3),
INSTRUMENT_TYPE_ID           NUMBER
);

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

put a semicolon at the end of each line of a file

hi, Consider there is a file containing 200 lines. please let me know which command is to be used to put a semicolon at the end of each line. if no single command is there then how it can be achieved. (1 Reply)
Discussion started by: surjyap
1 Replies

2. Shell Programming and Scripting

Replace a string after n semicolon every line

I have a file that is formatted in this way. a1;b2;c33;d4;e5;e;f;f;f;s d;ds;d;a;v;b;g;gr;r;rt;fdf s1;s2;s2;s3;s4; b1;f2;g3;h4;a3c4e;xcsd;fds; sd2;fs4;fs2;sdf3; I want to replace the value just before the 4th semicolon to empty string, regardless the value, such that it looks... (3 Replies)
Discussion started by: alienated
3 Replies

3. UNIX for Dummies Questions & Answers

How move characters following a semicolon to a new line

Hello, I was wondering how I can move this: ABC;>12 BLA;>67 DEF;>22 into this ABC >12 BLA >67 DEF >22 thanks for your help. (1 Reply)
Discussion started by: blakers
1 Replies

4. UNIX for Dummies Questions & Answers

How to specify beginning-of-line/end-of-line characters inside a regex range

How can I specify special meaning characters like ^ or $ inside a regex range. e.g Suppose I want to search for a string that either starts with '|' character or begins with start-of-line character. I tried the following but it does not work: sed 's/\(\)/<do something here>/g' file1 ... (3 Replies)
Discussion started by: jawsnnn
3 Replies

5. UNIX for Dummies Questions & Answers

vim copy line and paste at the beginning, middle, and end of another line

How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
3 Replies

6. Shell Programming and Scripting

Adding semicolon at the end of each line

Hi, I have a script which I need to change. I want to add a semicolon at the end of each line where the line starts with "grant" for e.g. create table(.... ); grant select on TABL1 to USER1 grant select on TABL1 to USER2should become create table(.... ); grant select on TABL1 to... (3 Replies)
Discussion started by: pparthiv
3 Replies

7. UNIX for Dummies Questions & Answers

Delete a semicolon and numbers after a semicolon

I have this: ((9:0.010,(11:0.089,13:0.004)) and I would like this: ((A9,(A11,A13)) How do I delete the semi colon and the number (i.e. 0.010) after the semi colon? Also, how can I add the letter before the number that is NOT removed? Thank you in advance! ---------- Post updated... (4 Replies)
Discussion started by: MDeBiasse
4 Replies

8. Shell Programming and Scripting

Inserting semicolon at the end of a line

HI Am totally confused with sed and translate command command.. My problem is I have a file like # vi test.csv ABC_IMUY ERD0_FN VEG_NON_DES_IYT BUY4_FLOW POI_SHD_URDF_IYUT_REDS_CYC UYT_PMC4_WIND EX_FRE_FRD_L2_REF_FLICT JHY_SGT_DSE_L2 IYO_HYTR_FGT_L3_BGT_ICT... (5 Replies)
Discussion started by: Priya Amaresh
5 Replies

9. Shell Programming and Scripting

With script bash, read file line per line starting at the end

Hello, I'm works on Ubuntu server My goal : I would like to read file line per line, but i want to started at the end of file. Currently, I use instructions : while read line; do COMMAND done < /var/log/apache2/access.log But, the first line, i don't want this. The file is long... (5 Replies)
Discussion started by: Fuziion
5 Replies

10. Shell Programming and Scripting

Replace semicolon within double quotes in a file with semicolon delimiter

Hello Team, Could you please help me with the below question? I have a file with the following properties 1) File Delimiter is ; 2) Text columns are within double quotes 3) Numeric columns will not have double quotes 4) File has total 6 columns Please see a sample record from file ... (3 Replies)
Discussion started by: sam99
3 Replies
FULLQUOTTEL(1)							   User Commands						    FULLQUOTTEL(1)

NAME
fullquottel - tool for detecting full quotes in mails or postings SYNOPSIS
fullquottel [OPTION...] < infile > outfile DESCRIPTION
fullquottel - tool for detecting full quotes in mails or postings -t, --scorethreshold=NUMBER Threshold for final score that discriminates between Goodquottel and Fullquottel (default: 1.5) --quotechars=CHARS Chars used for quoting (default: >|#) -d, --debug Debug option (prints single test results; default: off) --ownsigtest=1|0 Turn on/off ownSigTest (default: on) --ownsigtestscore=NUMBER Score for ownSigTest (default: 1.0) -f, --ownsigtestfile=SIGFILE Signature file to test against (default: ~/.signature) --mstest=1|0 Turn on/off msTest (Microsoft attribution lines; default: on) --mstestscore=NUMBER Score for msTest (default: 1.0) --mstestthreshold=NUMBER Threshold for msTest (at or below which line a Microsoft attribution line ist found; default: 2) --quotedtoalltest=1|0 Turn on/off quotedToAllTest (ratio quoted lines to all; default: on) --quotedtoalltestscore=NUMBER Score for quotedToAllTest (default: 1.0) --quotedtoalltestfactor=NUMBER Result = score + ratio * FACTOR (default: 0) --quotedtoalltestthreshold=NUMBER Ratio threshold for activating quotedToAllTest (default: 0.5) --bottomquotedtoalltest=1|0 Turn on/off bottomQuotedToAllTest (ratio quoted lines at bottom to all; default: on) --bottomquotedtoalltestscore=NUMBER Score for bottomQuotedToAllTest (default: 1.0) --bottomquotedtoalltestfactor=NUMBER Result = score + ratio * FACTOR (default: 0) --bottomquotedtoalltestthreshold=NUMBER Ratio threshold for activating bottomQuotedToAllTest (default: 0.5) --bottomquotedtoquotedtest=1|0 Turn on/off bottomQuotedToQuotedTest (ratio quoted lines at bottom to all quoted lines; default: on) --bottomquotedtoquotedtestscore=NUMBER Score for bottomQuotedToQuotedTest (default: 1.0) --bottomquotedtoquotedtestfactor=NUMBER Result = score + ratio * FACTOR (default: 0) --bottomquotedtoquotedtestthreshold=NUMBER Ratio threshold for activating bottomQuotedToQuotedTest (default: 0.5) --singlebottomquotetest=1|0 Turn on/off singleBottomQuoteTest (only one quote block, and at the bottom; default: on) --singlebottomquotetestscore=NUMBER Score for singleBottomQuoteTest (default: 1.0) HINT: All long options (without leading --) can be used in ~/.fullquottelrc -?, --help Give this help list --usage Give a short usage message -V, --version Print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. REPORTING BUGS
Report bugs to <toast@toastfreeware.priv.at>. SEE ALSO
The full documentation for fullquottel is maintained in HTML created by doxygen and can be found in /usr/share/doc/fullquottel/html/ fullquottel 0.1.2 April 2007 FULLQUOTTEL(1)
All times are GMT -4. The time now is 04:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy