Have a file(contents of the file wibble.lis as below)
[COLOR=red]
Log file for RRV112T2 - Ad-hoc Bill Extract Table (Re-)Create
PL/SQL procedure successfully completed.
Started RRV112F2.sh - Ad-hoc Bill Extract Flat File (Re-)Create
RRV112F2 - Extract file name...
What to add header line as the first line to a file created from a sql(oracle) file.
The sql file output(output.txt) is as follows;
REV|23453253||TEST TEST|DUMP NE23 5SD
REV|23454345|2|TEST TEST|TEST NE49
The header line I was trying to add is
"3P_CREDITORS" "5" "" "31-OCT-2008"
which is in...
The file has following type of data and need to reformat it
"3P" "1" "" "28-AUG-1900"
"REV"
"5674023"
"97418"
"6946311"
""
"TRAINING SOLUTIONS LTD"
"REV"
"940000"
"97419"
"6907016"
""
"MR CN SIA GILL"
Need the file to formatted like the following
"3P" "1" "" "28-AUG-1900"...
<b>Is there something to say start processing at line 2 – eg </b>
Header Record
4
The Beatles
Liverpool
5
The Rolling Stones
London
3
The Who
London
<b>And the result be </b>
Header Record
4|The Beatles|Liverpool
5|The Rolling Stones|London
3|The Who|London
Thanks in advance.
Many thanks guys the
for i in `find . -type f`
do
..
done
works with a ./<filename>
But it is a good starting point for me. As I can use cut -c 3- to get rid of the ./
Thanks again. I will be definately using the forum again.
ls | while read fnm
do "echo current file = '$fnm'"
done
There must be something wrong tried using bash shell and ksh and both come back as
current file = '{}new.txt': not found
same for every other file in the dir. new.txt is a file in the the current dir.
SunOS 5.9 Generic_122300-08 sun4us...
Sorry be more specific, trying to do something like,
hold the filenames one at a time and run through the loop doing few things.
ls -l | cut -f7
loop
sed 's/'&Civil Dev'/'and Rescue'/ file1
grep "New Account" >{file1}new.txt
grep -v "New Account" >(file1)old.txt
mv file1new.txt...
I am new to unix scripting, but I am trying to write something which can search a given directory pickup individual files for processing or passed into another script for doing some more work.
Stumbled in the first hurdle, cannot get the file names on its own
was trying ls -l | cut -f7
please...
If someone has used Java Web Start, could I know the necessary steps necessary for deploying forms9i on 9iAS Rel 2.
The idea being that my application is independent of the browser viz IE and NetScape.
I am new to Java so any help is appreciated.
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.