we're getting there :)
i must have strange version of awk !!
that command deletes the lines containing '5' in position '17' but the next line(s) are simply moved to the end of the file rather than deleted !!??
the awk you suggested to delete the lines with "5" in character position 17 from the original file results in:
awk: syntax error near line 1
awk: bailing out near line 1
sorry, i have no experience of using awk, any suggestions ?
thankyou
thats fantastic, the substr works a treat, thankyou.
how would i then go about deleting those lines identified by that awk from the original file ?
many thanks, you're a star
thankyou for the quick response Feherke,
I've tried
awk '$17=="5"{print;getline;print}' inputfile >outputfile
but the outfile is empty, am i being really silly and missing something obvious ??!!
thankyou
Hi,
I need to script the following:
find lines containing '5' in position 'x' and cut that line plus the next line into a new file.
Any help would be greatly appreciated
Many thanks in advance
Example file below:
10 451125158200601000400091210101 701 125.51
40 4511251582006...
HELP !
Most of our clients, Notes 5.06 / 5.08, have soft deletions enabled, set to 336hrs and a 'contains deleted documents' view called 'Recycle Bin'.
For some very strange reason recycle bins are being cleared down much earlier than every 336hrs. Take for instance yesterday, my recycle bin...
Thanks very much mrn, sem and stefanhei.
> sem, that makes interesting reading and makes alot of sense, we have no performance issues at the moment so I'm not going to lose any sleep over the extents at the moment.
Many thanks everybody
Mike, Dima, I have tables with many extents, most under 10 extents the rest are between 25 - 100 extents. It's been recommended we defrag when a table reaches >5 extents.
Thanks
Hi
I need to 'defrag' some tables and wonder if the following method is the best way:
1. export table(s)
2. drop table 'tablename' cascade constraints
3. Import table(s)
It's mainly the drop command I'm unsure about.
Thanks
>Jad
Thanks very much for your reply, I'm going to tweek the second script and that should sort me out.
Cheers
and by the way, I did spend some time using the keyword search but couldn't find anything :( Posting a new thread was the last resort.
Hi
I have a Unix script that prompts the user for a response.
I want to then pass this response to an ftp script that will do an mget on all files containing that value in the file names, ie: all FILES.*'user variable'*.
Does anybody have ANY idea howto go about this ?
Many thanks in advance
JC
I'm gonna be a real pain now !!
I'm trying to call the following script from within a standard shell script.
The script fails when run using cron but completes OK running from the command line.
Any ideas ?
£!/bin/ksh
echo 'EXPORT - rename process for file: '$FILE
typeset -Z8 EXP_NUM=$(<...
HELP !!
I've written a little script that runs every 15 minutes to check a directory on a remote server and ftp any files found to a directory on our Unix server. The script then adds a suffix of .ddmmHHMM to each file.
The user would like this suffix to be a sequential number, preferably...
Hi
I'm regularly getting the above error running BackupExec Version 8.0 Rev 3316. The only other 'error' messages are:
OFO: Error during backup. Set has been aborted.
Log then says Backup completed and eventually fails on the Verify with 'Unexpected end of backup set encountered'.
Details...
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.