Sponsored Content
Top Forums Shell Programming and Scripting Deleting particular files with a numerical suffix Post 302646483 by elixir_sinari on Friday 25th of May 2012 08:08:38 AM
Old 05-25-2012
Quote:
Originally Posted by mnmonu
Code:
$ ls | rm `awk -F"_" ' $2 > 10540 '`

Does this work???
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Listing files in numerical order

Hi, I'm trying to write a ksh script to copy a specified number of files from one directory to another. The files are named in the convention <switchname>_log.<num> and the numbers are sequential single digit onwards. I figured I could find some parameter for ls which would list the files in... (3 Replies)
Discussion started by: Steve_H
3 Replies

2. Programming

Adding files of numerical data

Hi I was hoping that maybe someone could help me with a small piece of C code. I have a number of files, which are all of similar layout ie. three lines of text and 5-6 columns of numerical data. I need to add each of the elements of the second column in one file to their counterparts in the second... (17 Replies)
Discussion started by: Boucho
17 Replies

3. UNIX for Dummies Questions & Answers

How to rename multiple files with a common suffix

Hi, There are multiple files like file1_11 file2_11 file3_11.....and so on. How to rename them such tht the suffix _11 is removed and they become file1, file2, file3. Any help is appreciated. Regards er_ashu (1 Reply)
Discussion started by: er_ashu
1 Replies

4. Shell Programming and Scripting

compare files by numerical value

Hi everyone, I would love to have a script that does the following: I have one file that looks like that: ATOM 1 BB SER 1 1 -31.958 -25.125 -11.061 1.00 0.00 ATOM 3 BB GLY 1 2 -32.079 -26.085 -14.466 1.00 0.00 ATOM 4 BB VAL 1 3 ... (1 Reply)
Discussion started by: s-layer
1 Replies

5. Shell Programming and Scripting

how to find files not suffix with .c

if I want to search those files which were suffix with .c, I can use find ./ -name *.c but how to find out those files which were not suffix with .c ?? Thanks a lot! (2 Replies)
Discussion started by: cqlouis
2 Replies

6. UNIX for Dummies Questions & Answers

deleting files based on the suffix

how do we delete files based on the suffix??? (1 Reply)
Discussion started by: saggiboy10
1 Replies

7. UNIX for Dummies Questions & Answers

List files according to the numerical value

Hi, I have a large number of files which are named as follows. VF_50, VF_100, VF_150, VF_250, VF_300, VF_350, VF_400, VF_450, VF_500. When I do an 'ls' it arranges the files in the following way VF_100, VF_150, VF_250, VF_300, VF_350, VF_400, VF_450, VF_50, VF_500. Is there a way to... (2 Replies)
Discussion started by: lost.identity
2 Replies

8. Shell Programming and Scripting

Renaming multiple files at once (discarding suffix of the filename after a character)

Hi, I have a lot of files similar to the below order. I want to rename all the files .discrading the time stamp/numbers after cnf. Existing files id_info_20130405.cnf_20130801 in_info_20130405.cnf_20130891 iz_info_20130405.cnf_20130821 in_info_20130405.cnf_20130818... (2 Replies)
Discussion started by: saravanapandi
2 Replies

9. Shell Programming and Scripting

Finding all files w/ suffix on the system

I am trying to build a list of all files ending in *.cbl in the system, but when I try find / -name *.cbl, I only find one specific file name that is alphabetically first. Is there something I'm missing? TIA ---------- Post updated at 11:20 AM ---------- Previous update was at 11:15 AM... (1 Reply)
Discussion started by: wbport
1 Replies

10. Shell Programming and Scripting

Move files with a certain suffix based on how many files are in another folder

Hello, First time poster. I am looking for a way to script or program the process of moving files from one folder to another, automatically, based on the count of files in the destination folder. I was thinking a shell script would work, but am open to the suggestions of the experts... (6 Replies)
Discussion started by: comtech
6 Replies
PMKINSTALL(1)						    BSD General Commands Manual 					     PMKINSTALL(1)

NAME
pmkinstall -- install binaries and data SYNOPSIS
pmkinstall [-bcs] [-B suffix] [-g group] [-m mode] [-o owner] file1 file2 pmkinstall [-bcs] [-B suffix] [-g group] [-m mode] [-o owner] file1 ... fileN directory pmkinstall -d [-g group] [-m mode] [-o owner] directory ... pmkinstall -v pmkinstall -h DESCRIPTION
The file(s) are copied to the target file or directory. If the destination is a directory, then the file is copied into directory with its original filename. If the -b option is given and the target file already exists, it is renamed to the original name folloeb by the backup suffix. The default suffix is ".old" but can be overriden with the -B option. The options are as follows: -B suffix Orverride backup suffix -b Backup any existing files before overwriting. -c Copy the file. This is actually the default. The -c option is only included for backwards compatibility. -d Create directories. Missing parent directories are created as required. -g group Specify a group. A numeric GID is allowed. -h Display usage. -m mode Specify an alternate mode. The default mode is set to rwxr-xr-x (0755). The specified mode may be either an octal or symbolic value; see chmod(1) for a description of possible mode values. -o owner Specify an owner. A numeric UID is allowed. -s pmkinstall exec's the command of environment variable STRIP to strip binaries so that install can be portable over a large number of systems and binary types. If the environment variable STRIP is not set, the action is skipped. -h Display version. The pmkinstall utility exits 0 on success, and >0 if an error occurs. ENVIRONMENT
STRIP Set which strip(1) program to run. SEE ALSO
pmk(1), pmkscan(1), pmksetup(8) AUTHOR
Damien Couderc. BSD
June 6, 1993 BSD
All times are GMT -4. The time now is 08:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy