learn unix and linux commands
4 stars based on
The tech resource your business needs. Fast and easy online binary option full bwana all Open in new window. The results are in! Meet the top members of our Expert Awards. If test binary operator expected to all who qualified!
ZipGrep is a utility that can list and search zip. One of a set of tools we're offering as a way to say thank you for being a part of the community. Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Sign up today x. Question priority can be upgraded with a premium feature. I have this script that will search through one level folders and if there are files found than gzip, delete fles and than move gzip to archive folder.
The problem I have is when it finds more than one file in the same folder I get error message: Linux OS Dev 1. Linux OS Dev I would assume so. How do I go about that? I'd write one script, e. Note that by using the additional parameter "-type f" for find, it will only list files, not directories, so you won't have to check that for yourself.
This should read "where foobar. Is this logic for foobar. Script hangs and nothing happened. When you call foobar. By the way, there's already a tool which does what you are doing with the sed-expression. I wrote you a script which I think if test binary operator expected what you want. You also might want to add some sanity checks. I am not getting that error any more. Also I need to have files to be archived without it's path.
My directory structure is in one level and it looks like this: Also it should delete files after tar. This was the original question: I'll increase points to Try the attached script. In order to have it if test binary operator expected only on one level of subdirectories, call it with: You should if test binary operator expected an absolute path.
If there are any more questions, I'll be back in the for me evening! FYI I modified script that call for archive. Question has a verified solution. Sign up with Google. Sign up with LinkedIn. Sign up with Facebook. I would like to receive news, updates and offers from Experts Exchange.
A Simple Linux script to retrieve information from the web using xpath selection. Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…. Remove superseded updates in Windows 7. How to remove superseded packages in windows w60 or w61 installation media.
There are various …. Learn several ways to interact with files and get file information from the bash shell. Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…. In a recent question https: Course of the Month 25 days, 16 hours left to enroll.