Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Delete files beginning with * Post 302794623 by alister on Tuesday 16th of April 2013 11:23:55 AM
Old 04-16-2013
If you don't mind diving into the deep end, look into strace.
Code:
strace -o ../trace.txt sh -c 'rm *'

The manual page may contain information which will help to exclude irrelevant information, but I'm not familiar with the cygwin variant of this tool.

Regards,
Alister

---------- Post updated at 11:23 AM ---------- Previous update was at 11:21 AM ----------

Are these files being accessed over a network file system? What is the filesystem used by the partition on which they reside?

Regards,
Alister
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

delete lines from file2 beginning w/file1

I've been searching around here and other places, but can't put this together... I've got a unique list of words in file 1 (one word on each line). I need to delete each line in file2 that begins with the word in file1. I started this way, but want to know how to use file1 words instead... (13 Replies)
Discussion started by: michieka
13 Replies

2. Shell Programming and Scripting

delete beginning field.

I want to script out deleting the first field of a file when it is created. I'm looking to store the output of an ls -l commad to a file but leaving off the permissions so when the file is opened I see something like; 2 bin bin 256 Feb 6 2005 mnt 5 root system 256... (2 Replies)
Discussion started by: daveisme
2 Replies

3. Shell Programming and Scripting

Detect lines beginning with double-byte characters (Japanese) and delete

Greetings, I want to use a script (preferably awk) which determines if the first character in a line is double-byte (as in Japanese or Chinese) and deletes it. For example: (in the above quote, I see Japanese on my screen for two lines - with 2 characters in the first and 3 characters in the... (8 Replies)
Discussion started by: ubbeauty
8 Replies

4. UNIX for Dummies Questions & Answers

Command to delete numbers at beginning of txt file line

Hello. I have the following issue: my txt file has the following format: train/dr4/fklc0/sx175.txt 0 80282 Severe myopia contributed to Ron's inferiority complex. train/dr4/fklc0/sx355.txt 0 42906 Dolphins are intelligent marine mammals. train/dr4/fklc0/sa2.txt awk 'NR%2==0' test1.txt >... (4 Replies)
Discussion started by: li_bi
4 Replies

5. Shell Programming and Scripting

renaming files or adding a name in the beginning of all files in a folder

Hi All I have a folder that contains hundreds of file with a names 3.msa 4.msa 21.msa 6.msa 345.msa 456.msa 98.msa ... ... ... I need rename each of this file by adding "core_" in the begiining of each file such as core_3.msa core_4.msa core_21.msa (4 Replies)
Discussion started by: Lucky Ali
4 Replies

6. UNIX for Dummies Questions & Answers

How to use wild cards to find files beginning with upper and lower case

Im trying to use wild cards to find files that start with either an upper or lower case letter e.g. list files that beginning with b or B, i also want to sort them by the time they were last modified. e.g latest file created first. At the moment i have the following code that ls -d... (3 Replies)
Discussion started by: parker4001
3 Replies

7. Shell Programming and Scripting

Append variable texts to the beginning of each line in all files in a directory

I am writing a code to append some numbers in the beginning of each line in all the files present in a directory. The number of files are really huge. The files are numbered as 1.sco, 2.sco, 4.sco (Note: 3.sco is missing). The files currently look like this: 1.sco 2 3 5 6 6 7My task is to... (4 Replies)
Discussion started by: shoaibjameel123
4 Replies

8. Shell Programming and Scripting

Append Multiple files with file name in the beginning of line

Hi, I have multiple files having many lines like as bvelow: file Name a.txt abc def def xyz 123 5678 file Name b.txt abc def def xyz 123 5678 I would like to append files in the below format to a new file: file Name c.txt (7 Replies)
Discussion started by: rramkrishnas
7 Replies

9. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies

10. UNIX for Beginners Questions & Answers

Removing characters from beginning of multiple files

Hi, I have been searching how to do this but I can't seem to find how to do it. Hopefully someone can help. I have multiplr files, 100's example 12345-zxys.213423.zyz.txt. I want to be able to take all these files and remove the first '12345-' from each of the files. '12345-' these characters... (5 Replies)
Discussion started by: israr75
5 Replies
DPKG-DEPCHECK(1)                                                      DEBIAN                                                      DPKG-DEPCHECK(1)

NAME
dpkg-depcheck - determine packages used to execute a command SYNOPSIS
dpkg-depcheck [options] command DESCRIPTION
This program runs the specified command under strace and then determines and outputs the packages used in the process. The list can be trimmed in various ways as described in the options below. A good example of this program would be the command dpkg-depcheck -b debian/rules build, which would give a good first approximation to the Build-Depends line needed by a Debian package. Note, however, that this does not give any direct information on versions required or architecture-specific packages. OPTIONS
-a, --all Report all packages used to run command. This is the default behaviour. If used in conjunction with -b, -d or -m, gives additional information on those packages skipped by these options. -b, --build-depends Do not report any build-essential or essential packages used, or any of their (direct or indirect) dependencies. -d, --ignore-dev-deps Do not show packages used which are direct dependencies of -dev packages used. This implies -b. -m, --min-deps Output a minimal set of packages needed, taking into account direct dependencies. Using -m implies -d and also -b. -C, --C-locale Run command with the C locale. --no-C-locale Don't change locale when running command. -l, --list-files Also report the list of files used in each package. --no-list-files Do not report the files used in each package. Cancels a -l option. -o, --output=FILE Output the package diagnostics to FILE instead of stdout. -O, --strace-output=FILE Write the strace output to FILE when tracing command instead of using a temporary file. -I, --strace-input=FILE Get strace output from FILE instead of tracing command; strace must have be run with the -f -q options for this to work. -f, --features=LIST Enable or disabled features given in the comma-separated LIST as follows. A feature is enabled with +feature or just feature and disabled with -feature. The currently recognised features are: warn-local Warn if files in /usr/local or /var/local are used. Enabled by default. discard-check-version Discards execve when only a --version argument is given to the program; this works around some configure scripts that check for binaries they don't actually use. Enabled by default. trace-local Also try to identify files which are accessed in /usr/local and /var/local. Not usually very useful, as Debian does not place files in these directories. Disabled by default. catch-alternatives Warn about access to files controlled by the Debian alternatives mechanism. Enabled by default. discard-sgml-catalogs Discards access to SGML catalogs; some SGML tools read all the registered catalogs at startup. Files matching the regexp /usr/share/sgml/.*.cat are recognised as catalogs. Enabled by default. --no-conf, --noconf Do not read any configuration files. This can only be used as the first option given on the command-line. -h, --help Display usage information and exit. -v, --version Display version and copyright information and exit. CONFIGURATION VARIABLES
The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced in that order to set configuration variables. Command line options can be used to override configuration file settings. Environment variable settings are ignored for this purpose. The currently recognised variable is: DPKG_DEPCHECK_OPTIONS These are options which are parsed before the command-line options. For example, DPKG_DEPCHECK_OPTIONS="-b -f-catch-alternatives" which passes these options to dpkg-depcheck before any command-line options are processed. You are advised not to try tricky quot- ing, because of the vagaries of shell quoting! SEE ALSO
dpkg(1), strace(1), update-alternatives(8) and devscripts.conf(5). COPYING
Copyright 2001 Bill Allombert <ballombe@debian.org>. Modifications copyright 2002,2003 Julian Gilbey <jdg@debian.org>. dpkg-depcheck is free software, covered by the GNU General Public License, version 2 or (at your option) any later version, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for dpkg-depcheck. dpkg-depcheck March 2002 DPKG-DEPCHECK(1)
All times are GMT -4. The time now is 07:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy