Sponsored Content
Top Forums UNIX for Dummies Questions & Answers removing files in a given subfolder Post 302712031 by Hugi on Monday 8th of October 2012 11:00:54 AM
Old 10-08-2012
Sorry, dont ask me why i posted in german.. Smilie

"your idea sounds nice, but if there is another folder on same level, the files inside will be deleted too."

Wirkt verführerisch, jedoch trifft das dann auch auf Ordner zu die evtl auf gleicher Ebene angelegt wurden.
Ich würde schon gerne genauer sortieren. Dann bleibt mir doch wohl nur scripten...

Last edited by Hugi; 10-08-2012 at 05:51 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Samba read only subfolder.

Hi, I need to make a folder read only under a fileshare that has full permissions granted to it. The fileshare with full permissions is /u02/prodfileshare. The folder I need to make read only for everyone except the owner of the folder is called /u02/prodfileshare/EFT/purchases. ... (0 Replies)
Discussion started by: sparcman
0 Replies

2. UNIX for Dummies Questions & Answers

How to Get the count fo files in each subfolder

Hi is there a command to get the count of files inside each sub directory in a directory. example: in a directory like this /opt/:> ls subdir1 subdir2 subdir3 I need to see the count of files in sub directories like this: /opt/subdir1: 3 files /opt/subdir2: 5 files /opt/subdir3: 10... (1 Reply)
Discussion started by: sanjangr
1 Replies

3. UNIX for Dummies Questions & Answers

Unzip subfolder to some path.

I have a zip file (somezipfile.zip) with the following contents in it: dir1/subdir1/somefile1.txt dir1/subdir2/somefile2.txt dir1/subdir2/somefile3.txt dir1/somefile3.txt dir1/somefile4.txt dir2/somefile5.txt dir2/somefile6.txt Lets say I unzip this to my home directory so now I have: ... (0 Replies)
Discussion started by: mrwatkin
0 Replies

4. Shell Programming and Scripting

Link multiple files from different subfolder to a new subfolder

Hi, I have the following subfolder with files: /data/a/1/xxx.txt /data/b/2/yyy.txt /data/c/3/zzz.txt And i have a set of new folders which have exactly the same structure as above but different disk without the files: /data_02/a/1/ /data_02/b/2/ /data_02/c/3/ Now i would like to... (6 Replies)
Discussion started by: total_ysf
6 Replies

5. Shell Programming and Scripting

Create subfolder within folder in one command

suppose if i am checking folder g as shown below path a/b/c/d/e/f/g ,and some directory c,d,e,f,g not present then is there anyway to create directory in one command or i need to use mkdir for everyfolder (3 Replies)
Discussion started by: lalitpct
3 Replies

6. Shell Programming and Scripting

List of files in a folder inclusive subfolder

Hi, I need to list the names of existing files in a specific folder. I have written a script for that, but the problem is, it is also picking up name of a subfolder that is there in that folder. I need only the list of files and not that subfolder. How to go about that ? Can anyone plz help... (2 Replies)
Discussion started by: Subhasis
2 Replies

7. Shell Programming and Scripting

Bash - Find files excluding file patterns and subfolder patterns

Hello. For a given folder, I want to select any files find $PATH1 -f \( -name "*" but omit any files like pattern name ! -iname "*.jpg" ! -iname "*.xsession*" ..... \) and also omit any subfolder like pattern name -type d \( -name "/etc/gconf/gconf.*" -o -name "*cache*" -o -name "*Cache*" -o... (2 Replies)
Discussion started by: jcdole
2 Replies

8. UNIX for Beginners Questions & Answers

Find and removing the old files and zipping the files using shell script

Hi, I am trying to removing the old files which were older than 10 days and same g zipping the files using the shell script. script was return as follows. find /jboss7_homes/JBOSS7/SKYLIV??/SKYLIV??_CRM/jboss-eap-7.0/standalone/log -mtime +10 -type f | xargs rm -f find /cer_skyliv??/log... (6 Replies)
Discussion started by: venkat918
6 Replies

9. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies

10. Shell Programming and Scripting

Bash to copy subfolder and files to matching directory

The bash executes but returns no results and the set -xv showed while the $run variable in blue, was extracted correctly, the $match value in green, was not, rather both values in home/cmccabe/Desktop/f1 were extracted not just the matching. There will always be an exact match from the $run to... (7 Replies)
Discussion started by: cmccabe
7 Replies
DTAUS(5)																  DTAUS(5)

NAME
dtaus - Converter for DTAUS files DESCRIPTION
The dtaus(1) program reads and writes German DTAUS files. DTAUS is an semi-acronym for DatenTragerAUStausch. It is used by German credit institutes in order to implement money exchanges between accounts and credit institutes. These files are always called DTAUS0.TXT. Since they are shipped in a weird ascii format that is not quite readable and writable for human beings a special control format was invented. The dtaus(1) program reads and writes such a control file and generates a proper DTAUS file if requested or decodes one. CONTROL FILE
The control file implements a very simple format which was invented only for use with the dtaus(1) program. Like with many *nix configura- tion files empty lines and those beginning with a hash mark (``#'') are ignored. The remaining file is splitted into three major parts: one BEGIN record (representing the A record), several regular records (representing C records) and one optional END record (representing the E record), which is ignored when the control file is read but is extracted from the bank file if one is decoded. Here's a short sample for a control file: BEGIN { Art type Name Martin Schulze Konto 123545 BLZ 2004002 Ausfuehrung 23.12.2001 Euro } { Transaktion transaction Name Martha Schulze Konto 98832 BLZ 2004003 Betrag 20.00 Zweck Gebuhr Wohnheimnetz Text AnschluB u. 11+12.97 } ... Please note that several field names are used in both the BEGIN and the regular record. When used in the BEGIN record they denote your name and your bank account. When used in a regular record they are affiliated with your customers data. You may use up to 15 fields entitled as Text. They will be recorded one by one and stored into additional data records using the same order. This way you could add a detailed description of the type of money transfer if you like. The contents of the field Zweck are most probably what the customer will see on their bank statements. The field Ausfuehrung is optional and denotes the day when the entire transaction should be processed. The date has to be given as DD.MM.YYYY and will be translated into the resulting bank file literally. It may not be younger than the creation date of the file which will automatically be inserted by dtaus(1). The processing date also may not be more than 15 years later than the creation date. Explanation of type One of the following: LK Lastschrift Kundenseitig GK Gutschrift Kundenseitig LB Lastschrift Bankseitig GB Gutschrift Bankseitig Explanation of transaction One of the following: Einzug Bankeinzug Gutschrift Uberweisung Vermogen [JJJJ] Vermogenswirksame Leistung mit Sparzulage. Als Argument kann das Jahr angegeben werden, fur das diese Leistung gilt. Wenn es weggelassen, wird, verwendet dtaus das aktuelle Jahr. Vom Jahr wird nur die letzte Ziffer verwendet, es muB daher auch nicht vollstandig angegeben werden. Vermoegen [JJJJ] Wie Vermogen, jedoch ohne Umlaut. E-Cash Lastschrift aus Verfugung im elecctronic Cash-System E-Cash-A Lastschrift aus Verfugung im elecctronic Cash-System mit auslandischer Karte. You may only use one of these for the entire file. You are not allowed to switch between Einzug and Gutschrift within the same file. If you require the credit institute to process both types, you'll have to provide two separate diskettes. Support for Euro From January 1st 2002 the currency in many European countries, Germany is among these, changes to Euro. Hence, money transfer changes from DM (formerly known as ``Deutsche Mark'') to Euro. The format specification of DTAUS was meant for DM but was modified in 2001 to support Euro as well. The current version of dtaus(1) supports both currencies. It defaults to using Euro, however. To switch to DM, simply add the keyword DM (or Euro respectively if this version was compiled without Euro support as default) to the BEGIN record. If no currency keyword is given, the compiled in decides (upstream source defaults to Euro). Character Encoding German Umlauts are converted into two 7-bit characters on the fly so you don't need to care about them. Since the DTAUS0.TXT file only uses uppercase letters every text is also converted to uppercase. Except for the way records are delimited the format should be self explanatory. SEE ALSO
dtaus(1). DTAUS files use a special but simple and publically documented format. It is included in the distribution of dtaus(1) as dtaus.txt. 17 November 2001 DTAUS(5)
All times are GMT -4. The time now is 02:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy