Search Results

Search: Posts Made By: Tanuka
4,555
Posted By Tanuka
I'll try that - should be able to do it tomorrow...
I'll try that - should be able to do it tomorrow - have a little bit of a lax schedule then.
4,555
Posted By Tanuka
Unfortunately, I can't show the source code of...
Unfortunately, I can't show the source code of somepgm - I do not have it. But one example of somepgm is a data file utility which reformats a binary file into a flat text file. When this utility is...
4,555
Posted By Tanuka
KSH Redirect to Pipe (">|") Syntax
Occasionally I see this in ksh scripts:

somepgm >| someoutputfile

This appears to be redirecting the output of somepgm to the file someoutputfile, and it does do so.

But when you remove...
12,819
Posted By Tanuka
Ok guys, here's what I've ended up with, many...
Ok guys, here's what I've ended up with, many thanks to you, because this works great:


#!/bin/ksh
#- cpmany.ksh
#
# Used to copy regular files from one directory to another
# when the...
12,819
Posted By Tanuka
Perhaps I should first verify that the parameters...
Perhaps I should first verify that the parameters are each quoted before I execute the find cmd - if they are not, I could terminate the script with an error message.

So I'd need to look for...
12,819
Posted By Tanuka
I see - but is there no way to do this without...
I see - but is there no way to do this without requiring the double quotes around the parameter passed to the script?

I can see people often forgetting to double-quote their parameter, with...
12,819
Posted By Tanuka
Hi Filipe, When I use the double quotes...
Hi Filipe,

When I use the double quotes around the positional paramter like this ("$2") I get wierd results when I run the script.

For example, if I have a directory with the following files...
12,819
Posted By Tanuka
jlliagre, Your answers make perfect sense!...
jlliagre,

Your answers make perfect sense! This is very much appreciated. I'll study the "find" command.

This was sort of 'wigging me out' until you explained matters. Here in this script we...
12,819
Posted By Tanuka
-exec cmd in ksh script
Hi,

I discovered the following single-line script works very well to cp a large number of files from a source directory to a destination directory while avoiding the "argument list too large"...
Showing results 1 to 9 of 9

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