Sponsored Content
Top Forums Shell Programming and Scripting cat files in different directories Post 302171179 by Lakris on Wednesday 27th of February 2008 10:36:55 PM
Old 02-27-2008
Something like this?
for x in $(<files); do cat /${x}dat/natt_trans_like.dat;done >all_natt_trans_like.dat
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

cat files

Hi, I was a typical Windows guy. Like to do things just by clicking my mouse:cool:. I got a new job now...where they are big on unix. I am trying to wet my fingures now with unix. Haven't taken the dive yet. I am trying to find a solution for this problem. Please help me with some... (4 Replies)
Discussion started by: sandeep78
4 Replies

2. UNIX for Dummies Questions & Answers

Difference between cat , cat > , cat >> and touch !!!

Hi Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX? Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies

3. Shell Programming and Scripting

cat certain files in directories to files named after the dir?

Hi all, I have a directory with many subdirectories each named like so: KOG0001, KOG0002, ...KOG9999. Each of these subdirectories contain a variable number two kinds of files (nuc and prot) named like so: Capitella_sp_nuc_hits.fasta (nuc) and Capitella_sp_prot_hits.fasta (prot). The... (2 Replies)
Discussion started by: kmkocot
2 Replies

4. Shell Programming and Scripting

.sh script / Check for file in two directories then cat the files

Hi, Here is what i'm trying to do, -Check in two directories for a user inputed filename -Then cat all the version found of the file to the current screen I am a total nembie to programming, here what i have done so far.... #!/bin/bash #Check in /home/loonatic and /var/named/master... (2 Replies)
Discussion started by: Loonatic
2 Replies

5. UNIX for Dummies Questions & Answers

List directories and sub directories recursively excluding files

Hi, Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process. I wanted to disply using a unix command all the directories recursively excluding files. I tried 'ls -FR' but that display files as... (3 Replies)
Discussion started by: pointers
3 Replies

6. Shell Programming and Scripting

How to store files/directories in different directories!!

Hi legends, I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types. for example in a directory(anish). 5 different types files 1- directory 2- .txt files 2- .sh... (1 Reply)
Discussion started by: anishkumarv
1 Replies

7. Shell Programming and Scripting

How to list all the files, directories and sub-directories in the current path except one directory?

Can anyone come up with a unix command that lists all the files, directories and sub-directories in the current directory except a folder called log.? Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies

8. Shell Programming and Scripting

Rename the files in all the directories and sub-directories

Hi all, I have more than 12000 files in 46 different directories and each directory has 2 sub-directories named “dat” or “gridded”. Dat sub-directories have files with extension “jpg.dat” and gridded sub-directories have files with extension “.jpg”. I need to... (1 Reply)
Discussion started by: AshwaniSharma09
1 Replies

9. Shell Programming and Scripting

Archiving and moving files into directories, creating directories, etc.

how can i move "dataName".sql.gz into a folder called 'database' and then move "$fileName".tar.gz * .htaccess into a folder called 'www' with the entire gzipped file being "$fileName".tar.gz? Is this doable or overly complex. so mydemo--2015-03-23-1500.tar.gz > database -... (5 Replies)
Discussion started by: wyclef
5 Replies
DH_CLEAN(1)							     Debhelper							       DH_CLEAN(1)

NAME
       dh_clean - clean up package build directories

SYNOPSIS
       dh_clean [debhelperoptions] [-k] [-d] [-Xitem] [path...]

DESCRIPTION
       dh_clean is a debhelper program that is responsible for cleaning up after a package is built. It removes the package build directories, and
       removes some other files including debian/files, and any detritus left behind by other debhelper commands. It also removes common files
       that should not appear in a Debian diff:
	 #*# *~ DEADJOE *.orig *.rej *.SUMS TAGS .deps/* *.P *-stamp

       It does not run "make clean" to clean up after the build process. Use dh_auto_clean(1) to do things like that.

       dh_clean should be the last debhelper command run in the clean target in debian/rules.

FILES
       debian/clean
	   Can list other paths to be removed.

	   Note that directories listed in this file must end with a trailing slash.  Any content in these directories will be removed as well.

OPTIONS
       -k, --keep
	   This is deprecated, use dh_prep(1) instead.

	   The option is removed in compat 12.

       -d, --dirs-only
	   Only clean the package build directories, do not clean up any other files at all.

       -Xitem --exclude=item
	   Exclude files that contain item anywhere in their filename from being deleted, even if they would normally be deleted. You may use this
	   option multiple times to build up a list of things to exclude.

       path ...
	   Delete these paths too.

	   Note that directories passed as arguments must end with a trailing slash.  Any content in these directories will be removed as well.

SEE ALSO
       debhelper(7)

       This program is a part of debhelper.

AUTHOR
       Joey Hess <joeyh@debian.org>

11.1.6ubuntu2							    2018-05-10							       DH_CLEAN(1)
All times are GMT -4. The time now is 07:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy