Software :: Finding (conditions) Then Create Tar-ball (matching Files)?
Jul 8, 2010
certain there is command line magic that will enable me touse find to identify a set of files use tar to create an archive of all matching files I get find to create a list of files that I really want, but I'm dashed if I can discover how to tell tar to roll-up all of those files.
If I use find's -exec option, it runs tar for each filename. Telling tar that input is $(find ...) results in a command line that is correct but too long. I think that I want to tell tar to read the list of files from STDIN, but I cannot discover how to do that if it is possible. I thought that the option "--" double-dash but having that right-most on the tar command did not work.
I have two table files with x (1st column) ,y (2nd column) coordinates and intensity (3rd column). I need to match these two tables and divide the intensities at the consecutive coordinates on the 3rd column. The problem is the size of the tables are not same and I want to ignore the lines if they are not in one of the other file.
I have a requirement to list files using find command My folder contains below list of files with out extention.I have a requirement to exclude only ABC.123.* type files and list others. Even though files having MNO contains this pattern i should not exclude. Even if file ends with .txt or .doc it should not be excluded. That is ABC.123.1234.txt should not be excluded.But I am not getting what is required. Can any one please let me know if I am doing wrong any where. As per my requirement I cannot use grep, -regex, or -regex attributes to find command.
Is there a way, preferably in python or BASH, to rename files from a list? for instance, track1.mp3, track2.mp3 should be renamed to the names stored in a file listing song names. I have tried to loop a variable through directory listing and renamed them, only to find that filenames with spaces can't be assigned to a variable as a whole. To solve the problem above, I have tried the read command in BASH, which enables the program reading line by line from a list. However, It was failed to pipe the results from directory listing to the read command.
I have a file with joker character patterns: ./include/* ./src/* etc. From the current directory I would like to recursively get the list of files that do not match these patterns.
I have 2 massive duplicate dirs of the same format as below: dir1 subdir1 file1 subdir2 file1 subdir3 file1 ...
Dir2 is the same, but it has some newer files of the same name. I want to copy all file1's from Dir2 to the same name and folders in dir1. So basically something like: cp -pr bkpDir1/*/*-big.gif Dir2/*/*-big.gif
This works for singular cases: cp -pr bkpDir1/uniquesubdir/*-big.gif Dir2/uniquesubdir/*-big.gif
But not for wildcards: cp -pr bkpDir1/subdir*/*-big.gif Dir2/subdir*/*-big.gif
Anyway the aim is to do the first cp above, I have tried a few options using find. In trying to show an example stumbled upon a way that worked, while in dir2: find */*-big.gif | xargs -i cp -rp {} ../dir1/{} Sure there are better ways also...
I am writing a shell script that finds all files named <myFile> in a directory <dir> or any of its subdirectories, recursively. I also need to take care of symbolic links that may form cycles, to avoid infinite loops. I am not supposed to use find command for the same
I started writing the code but got stuck. I thought using recursion may be a smart way, but its not working.
I've been hitting my head against a wall for awhile with this one:As the last part of some data analysis I performing I would to construct a matrix from a series of different files. These files have the format:
What is the best and simplest way to compare two directory structures without actually comparing the data in files. This works fine: diff -qr dir1 dir2 But it's really slow because it's comparing files too. Is there a switch for diff or another simple cli tool to do this?
From this directory, I want to know how I could use grep to display files based on part of their filename - for example those starting with "Account" or those ending in ".sh".
Is there a program for Ubuntu that converts AVI files to VOB files? This is the only type of file that will burn to a DVD and successfully play on my DVD player. I can use DVD Flick on Windows but I'm sure this can't be the only way. There has to be a way to get VOB files on an Ubuntu operating system.
I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
Firstly, I have read the bug reports, seen the workarounds, and searched the site. As far as I'm aware, nobody has brought forth a solution for the problem I am about to describe.
From an old thread: Quote: Steps to reproduce problem: 1. Burn DVD 2. Insert DVD and boot system 3. At main Centos 5 boot menu press enter to install in graphical mode 4. Select English for language and press enter 5. Select us for type of keyboard and press enter 6. Select Local CDROM as type of media and press enter (list contains Local CDROM, Hard Drive, NFS image, FTP, HTTP)
7. Centos ejects the DVD and says, "The CentOS CD weas not found in any of your CDROM drives. Please insert the Centos CD and press OK to retry.
8. Reinsert the DVD and press enter for OK 9. Goto step 7
I'm using redhat... I'm using kernel-2.6.18-8 now i want to update my kernel with 2.6.32-2 version i install it from net, then un bzip and extract but how to install it .. on more question what is a meaning of stable version... and how to patch a kernel
I have two linux boxes running RHEL 5.5 with internal ip addresses 10.0.0.114/24 and 10.0.0.118/24, and usual gateway 10.0.0.1. There's an apache listening on both ports 80 and 443 for several websites. This works nice, but the feature for load balancing has to be added. For this, externally, but in the same subnet, a hardware device has been placed for load balancing (we call it "F5"), with internal ip 10.0.0.152 (vrrp for 10.0.0.153 and 10.0.0.154). There's a service address that does NAT via round robin to the servers, 10.0.0.208, managed by the F5 balancer.
If I set as gateway the ip 10.0.0.152 in both nodes, I can use the service address for browsing http and https, *BUT* at a cost that ssh and any other connections, at OS logging level, come from 10.0.0.1, which is innaceptable (i.e., I can' set proper security, regardless the F5 is badly configured), so I have to find another way for this. So, I thought of using iptables mangling capabilities, and my thought is that just changing the default route of the incoming http(s) traffic, everything should be ok. I've done the following:
If I tweak the hosts file in my M$ workstation to test individual access for each server, I can browse the websites with no problem, but if I set the service IP address, I get an error "Document contains no data" in the browser after just a few seconds. Apache logs show nothing in its logs. I can see packets arriving, but seem to go in a loop. I can provide some output, but since surely I'm making some mistake in the process, if I get help with the proper knoweledge about how to fix it, the problem will be solved. But if still someone needs it, I can provide more data.
When I wanna use wget to download some file by http, which conditions fulfilled on the server would make that successful. I mean that such service httpd is running and so on.
I'm using Ubuntu 10.04 (actually Linux Mint 9 but I can't remember my password to their forum...) and have had a couple of crashes with my installation of Thunderbird which from the repositories is one behind the current version. I've downloaded the tar.gz files from Mozilla and though I don't really want to get in the habit of it I'd like to do the hopefully simple compiling to get this running. Can someone give me some pointers? I've unzipped the download and there isn't anything in there that runs as far as I can see.
I've got a Compaq MX 11800 keyboard that has a ball (used as a mouse). The ball works fine in Ubuntu and Windows, but does not work in Debian or Fedora.
I don't know where to start troubleshooting this issue. Any help is appreciated.
I'm trying to install bitcoin onto my computer, and the Linux version only comes in tar.gz, and I can extract it just fine, however when I put in ./configure using the command line...it doesn't work...so I checked the README file and it didn't mention doing that...it simply told me to run either /bin/64/bitcoin or to run /bin/32/bitcoin However when I try running first one, /bin/64/bitcoin, it simply says something about there not being a shared library...But when I try to run /bin/32/bitcoin it simply says "Permission Denied" and yes I tried running as root when I first saw that...didn't do any good.