Search Results

Search: Posts Made By: GMMike
13,610
Posted By GMMike
How to copy N files from one dir to another
Hi,

I have a script that can only handLE limited number of input files.

I need to be able to write a command (or a script) that:

1> copies N number of files from one directory (A) to...
5,847
Posted By GMMike
File queue script
Dear Gurus,
I have an application that sends me thousands of small files.
I need to write a script that sleeps for some time untile enough files have arrived then concatenate (n) files into 1 big...
1,874
Posted By GMMike
I found that when I use -f alone grep displays...
I found that when I use -f alone grep displays all the input file and that -wf works well.

Thanks for your help.
1,874
Posted By GMMike
grep where expressions reside in file
I have a program that displays many messages on stdout.
I have another file that contain error messages only - Each line is a separate message. (msgs.txt)

I am trying to show only the errors and...
6,160
Posted By GMMike
Thanks much guys :)
Thanks much guys :)
6,160
Posted By GMMike
Capturing output from C++ program
Hi
I have a C++ program that generates a lot of log information on the console, I need this output (printed using printf function) to go to a file since I will use crontab to schedule the job.

I...
3,800
Posted By GMMike
Operating on a file being written by another application
Hi,
I have a directory that is used to store files generated by another application. Each file is huge and can take some time to produce.
I am writing a shell script to check the names and dates of...
2,614
Posted By GMMike
Hi Guys, This seams to have solved the...
Hi Guys,

This seams to have solved the problem:

print "$f" "$typ1"

It was a quotation problem...

Thanks for your help :)
2,614
Posted By GMMike
Hi, Thanks for your reply 1. Yes, I should...
Hi,
Thanks for your reply

1. Yes, I should include both variables in 1 print line.
2. I get the file names correct - The content of typ1 is I guess the one that is causing the problem...
3. The...
2,614
Posted By GMMike
What is wrong with this simple script?
The script below is supposed to list file and folder names and list the type besides each - It has no practical value - I am just trying to learn KSH (so far sounds like a bad idea!)

Expected...
3,679
Posted By GMMike
Thanks
Thanks for your help guys.

As per google's inquiry about the context, it appeared in a ksh script that goes through files and directories and does operations on them, it looked like this:

for...
3,679
Posted By GMMike
Listing directories and ${1:+$1/}*
Hi
I have 2 questions:

Q1 - What does
${1:+$1/}*
mean? I guess it lists all files in current directory - Could any one explain how this expression works?

Q2 - I am trying to list...
38,164
Posted By GMMike
Speed of mv vs. cp
Hi,
Is mv (move) command quicker than cp (copy command)?

I have large files and I want to know if mv actually copy the data to a new file then deletes the old or whether it just alters...
1,773
Posted By GMMike
How to logically reference multiple files as one
Hi,
I have 10s of small files that need to be processed by the same program every day. The files are large.

I prefer to logicall reference all of these files as a single file so Instead of doing...
41,179
Posted By GMMike
Thanks.
Thanks.
41,179
Posted By GMMike
find with -iname
Hi,
In some versions of UNIX find works with -iname so that you can find files regardles of the case.
In Solaris this is not working - Anys suggestions?

Also, how can I list directory names only...
4,947
Posted By GMMike
find - How to get rid of can not open msg
I am trying to list file names that contains a give string using this command:
$ find . -name "*" -maxdepth 1 -exec grep "*mystring*" {} \;

I get lots of messages like the ones below:

grep:...
28,310
Posted By GMMike
Need ls to show number of lines in each file
Hi,
I need a command that would let ls show number of lines in each file rather than file size in KBs.

I tried using wc -l as a source of input to ls but I found a problem cutting the file name...
12,819
Posted By GMMike
Hi There, That worked - Thanks.
Hi There,
That worked - Thanks.
12,819
Posted By GMMike
How to Pass a list of file names to ls
Hi
I have a list of file names generated from a find command.
The list does not show complete file information.
I would like to do this:

generate the list of file names
pass each file name...
41,964
Posted By GMMike
Thank you much. I'll give it a try.
Thank you much. I'll give it a try.
41,964
Posted By GMMike
How to get to my .profile?
Hi,
When I logon to UNIX I go to the root directory. I don't have an assigned user directory.
I need to get to my .profile so that I can change things like command prompt.

How do I do this? By...
Forum: Solaris 10-16-2004
13,628
Posted By GMMike
Thanks much.
Thanks much.
Forum: Solaris 10-14-2004
13,628
Posted By GMMike
SUN Solaris 9 - Is there a 2GB file size limit?
Hi
I am using SUN/Solaris 9 and I was told that some unix versions have 2GB size limit.
Does this applies to SUN/Solaris 9?

Thanks.
4,007
Posted By GMMike
Thanks guys...
Thanks guys.
Showing results 1 to 25 of 32

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