Sponsored Content
Full Discussion: list files commands
Top Forums Shell Programming and Scripting list files commands Post 302185913 by era on Wednesday 16th of April 2008 05:27:50 AM
Old 04-16-2008
rm doesn't read standard input, it expects the files to remove on its command line. Use xargs or backticks.

Code:
rm `ls -ltr | grep 2004....\.txt$`

or

Code:
ls -ltr | grep 2004....\.txt$ | xargs rm

Try it with "echo" instead of "rm" to make sure that you're doing the right thing.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

List of Commands for Unix Please

Hello, I have recentlly been given access to a Unix based server in order to learn how to operate a Unix machine.. i have never used Unix before and am in need of a list of commands and there functions.. if you have one available please send it to me in .txt or wordpad document form.. thank you in... (5 Replies)
Discussion started by: ShdwMaster
5 Replies

2. UNIX for Dummies Questions & Answers

A Thorough List of FreeBSD commands?!?

I was just wondering if anyone knew of a site that covered all or many of FreeBSD's built in commands. I would also like to know what FreeBSD automatically logs, and where it logs it. Thanks! (1 Reply)
Discussion started by: Kyser_Soze
1 Replies

3. Solaris

List of Commands

Dear All, I am a new Administrator of Solaris in the company , I need a list of the commands pls ... Regards Adel (2 Replies)
Discussion started by: ArabOracle.com
2 Replies

4. UNIX for Advanced & Expert Users

Comparison List of commands

Hi, I would like to have a list of commands in a table, see below example Command description HPUNIX SUN UNIX IBM AIX all above i need comparison list of commands ASAP please.......... B.R (1 Reply)
Discussion started by: f_amshan
1 Replies

5. UNIX for Dummies Questions & Answers

Command for maintaining the list of commands used

Hi, There is a command by which you can maintain a list of commands previously typed. By this you dont have to type in the same command again and can use the up-down arrows to scroll through the list. Which is this command, i am not able to recall. (8 Replies)
Discussion started by: appledrive
8 Replies

6. Shell Programming and Scripting

List of internal commands ??

Dear Sir/Mam, Can you tell me list of internal commands which are easy to implements...??? Means sir I am a beginner in unix shell programming. So, I just wanted to know that which internal commands are easy to implements in C language. thanks.... (1 Reply)
Discussion started by: ranusahu
1 Replies

7. UNIX for Dummies Questions & Answers

how to know the list of all commands supported by unix ?

how to know the list of all commands supported by unix. how to know the list of functions supported by unix. (4 Replies)
Discussion started by: Gopi Krishna P
4 Replies

8. UNIX for Dummies Questions & Answers

sudo commands list

Hi, Can you please give me a list of commands executed through 'sudo' command, thank you. (1 Reply)
Discussion started by: Dev_Dev
1 Replies

9. UNIX for Dummies Questions & Answers

How to save and run a list of commands?

Dear every one, I am working with the data of my lab program and I have to do many times by the same list of some commands (grep, then save to file, then use awk to delete odd lines, save to file, use awk to delete even lines, save to file...). Is there any way to save a list of command which I... (4 Replies)
Discussion started by: phamnu
4 Replies
DH_INSTALLDEB(1)						     Debhelper							  DH_INSTALLDEB(1)

NAME
dh_installdeb - install files into the DEBIAN directory SYNOPSIS
dh_installdeb [debhelperoptions] DESCRIPTION
dh_installdeb is a debhelper program that is responsible for installing files into the DEBIAN directories in package build directories with the correct permissions. FILES
package.postinst package.preinst package.postrm package.prerm These maintainer scripts are installed into the DEBIAN directory. Inside the scripts, the token #DEBHELPER# is replaced with shell script snippets generated by other debhelper commands. package.triggers package.shlibs These control files are installed into the DEBIAN directory. package.conffiles This control file will be installed into the DEBIAN directory. In v3 compatibility mode and higher, all files in the etc/ directory in a package will automatically be flagged as conffiles by this program, so there is no need to list them manually here. package.maintscript Lines in this file correspond to dpkg-maintscript-helper(1) commands and parameters. Any shell metacharacters will be escaped, so arbitrary shell code cannot be inserted here. For example, a line such as "mv_conffile /etc/oldconffile /etc/newconffile" will insert maintainer script snippets into all maintainer scripts sufficient to move that conffile. A versioned Pre-Dependency on dpkg is needed to use dpkg-maintscript-helper(1). An appropriate Pre-Dependency is set in ${misc:Pre-Depends} ; you should make sure to put that token into an appropriate place in your debian/control file. SEE ALSO
debhelper(7) This program is a part of debhelper. AUTHOR
Joey Hess <joeyh@debian.org> 9.20120909 2011-09-12 DH_INSTALLDEB(1)
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy