Search Results

Search: Posts Made By: Magnet
Forum: Programming 12-02-2012
7,143
Posted By Magnet
Give this a try...
I had a similar problem and this worked well for me:


#! /usr/bin/ksh

VALUE=`sqlplus -silent user/password@instance <<END
set pagesize 0 feedback off verify off heading off echo off
select...
46,928
Posted By Magnet
## Why make things difficult? This may be...
## Why make things difficult? This may be inelegant, but it works very well ...
rm -f .sh_history
touch .sh_history
chmod 600 .sh_history

## You can also edit the history file:
vi...
4,438
Posted By Magnet
Yet another alternative
You can also use csplit on the result of the grep-ped file

csplit (options) input-file-name 2

will produce two output files, one containing only the first record and the second file will...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy