HI group,
im trying to do the following:
print a statement "im learning unix"
append the contents of a file
print another line at the end.
---all into one single file.
expected output:
im learing unix
--- contents from a file--------
1
2
3
4
------conetnts from the line ends--
lastline " >...
I have the following numerous line in input file:
nvl(MP_MID_INIT_TXT, ' ') || 'M-G' ||
lpad(nvl(MP_SEQ_IMS_ID, 0), 3, 0) ||
lpad(nvl(MP_IMS_ID, 0), 7, 0) || 'M-G' ||
from which i need to delete the || 'M-G' || and ||...
i have the sed statement to change
to_char(BASE_DT, 'YYDDD')to to_char(CYC_DT, 'YYDDD')BASE_DT.
The sed that i have is :
sed 's/to_char\(BASE_DT, \'YYDDD\'\)/to_char\(CYC_DT, \'YYDDD\'\) BASE_DT/g' outdat.sql > osql.sql
However this gives an error. Please advice on the right syntax.
Thanks a...
Futurlet,
Thanks alot for the superb script. Though the above awk does most of the tasks required, it however doesnt change the occurance of B. to " " as required. Also i need to
replace the occurance of
'(B.In_DT,'YYDD')' to '(OT_DT,'YYDDD')In_DT'.
Please advice on modifying the awk for the...
Hi group,
i was trying to accomplish the following;
read file1 untill the line "B_comb" is encountered and not including the phrase "B_comb".(say line 181 has sql_seq_num B_comb; B_comb should be removed while reading all the lines upto "B_comb" and retainig 'sql_seq_num' but removing...
Hi group,
( sed '$d' infile1 ; sed '1d'infile2 ; sed -n '$p'infile2) > outfile.dat
I tried the above script to concatenate 2 files stripping the last line of first file, appending the second file after stripping the first line of second line. In the process as the last line of the second file...
Hi Group,
I need to concatenate two files;
read in the first file to a new file
delete the last line from the new file.
append the second file to this new file stripped of last line from the first file.
I tried working arround with two cat command and tail-n1 /dev/null 2>&1 to strip off the...
i have in directories /prod/test/data*(01-24)/testr
-rw-rw-rw- 1 1976 Nov 25 00:41 20030117estats.001
-rw-r--r-- 1 32768 Nov 26 11:43 b2030411nlod.001
-rw-r--r-- 1 8192 Nov 26 11:43 a2030411nlod.001
-rw-r--r-- 1 8192 Nov 26 11:43 b1030411nlod.001...
Hi
i have a script as below .when i excecute the script it gives an erroe of permission denied in making directory. i have chmod to 777.
set -vx
export X=$@
export JOB_NAME="${JOB_NAME}"
. /usr/local/bin/abi_global_setup uda
# Generated under GUI v1.12.5.2 #
set -- $X
set -...
HI group !!
i was executing this awk script ..but it throws an error..which im not able to figure ..plzz advice me on how to go about this error
$ awk '{for(i<=$3;i<=$4;++i) printf("%04d\t%s%s\t%s\n",i,$1,$2,$5)}'/in.parms > /out.dat
syntax error The source line is 1.
The error context is...
Hi group ,
im trying to extract table from oracle table using select ..
but i encounter the following error...
SQL> SELECT * FROM TABLE_RPT WHERE CYC_DT = '20030303' AND ROWNUM<10;
SELECT * FROM TABLE_RPT WHERE CYC_DT = '20030303' AND ROWNUM<10
*...
HI group,
I have an output file with a single row and 24 fields seperated by spaces as shoen below:
000 156 317 441 605 800 156 316 441 605 800 999 00009 15659 31709 44119 60519 80029 15649 31699 44109 60509 80019 99999
i want to export (as an environment variable), each of the column, to be...
HI,
I want to extarct a date field from the table and transform into a different date format("yyddd")..say if the input date is 20010201..outut date format should be 01032.
i have tried with following queries but have encountered the following errors..
sql>describe tabledate
DATA_DATE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.