Search Results

Search: Posts Made By: skwyer
1,685
Posted By skwyer
I changed my code as follows #!/bin/ksh ...
I changed my code as follows

#!/bin/ksh

set -- "-not" "-name" "*.xom" "-a" "-not" "-name" "*.sh" "-a" "-not" "-name" "*.pl"

/usr/local/bin/find path/to/files $@ > FileList.txt

It is...
1,685
Posted By skwyer
Thank you so much. I was putting my eval in the...
Thank you so much. I was putting my eval in the wrong place.
1,685
Posted By skwyer
Help using variable in find rule
I'm not able to use a variable in my find rule. It's essentially being ignored.

I'm trying to store a list of file types to ignore in a variable.

This is the relevant code.


#!/bin/ksh
...
4,793
Posted By skwyer
BRILLIANT! Actually it wasn't a tarball but...
BRILLIANT!

Actually it wasn't a tarball but a regular .zip file so I had to modify your advice accordingly. I went with this and it worked:

VARIABLE=`unzip -tlv $PATH | cut -d"/" -f1 | cut...
4,793
Posted By skwyer
I tried piping an unzip test to a find but that...
I tried piping an unzip test to a find but that didn't work. I also tried grep but am basically at a loss as to how to search through the zip file.

Mike
4,793
Posted By skwyer
assign zip directory to variable
I'm running an sh shell that is unzipping some zip files that have a directory structure on them.

Is there a way I can find the top level directory in the zip file and assign that to a variable?
...
31,584
Posted By skwyer
ls -lh worked wonderfully, thanks. I didn't...
ls -lh worked wonderfully, thanks.

I didn't show the code for copying and stuff because that was working.

Thanks again!

Mike
31,584
Posted By skwyer
Checking file size of zip file
I'm having a problem with a bash shell

The shell is running through a list of zip filenames, copying the zip files to another location and adding a file to the zip files.

All this is working...
24,341
Posted By skwyer
That worked. Thanks so much, everyone! Mike
That worked. Thanks so much, everyone!

Mike
24,341
Posted By skwyer
I tried that as well as some variations earlier,...
I tried that as well as some variations earlier, but the test error message won't stop popping up in the tests that I run. I get a paragraph about the end of central directory not found. It executes...
24,341
Posted By skwyer
Suppress error message in unzip
I'm creating a bsh shell to unzip a file from one directory into another. The directory that holds the zip files has zip files constantly being added to it, so I am testing it before it does the...
Showing results 1 to 11 of 11

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