Making lots of unfounded assumptions about the names of the files you want to remove, assuming that the file containing the list of files you want to remove is named /sub/01.05/input, assuming that you are using some kind of UNIX or Linux system, and assuming that you are using a shell that adheres to POSIX shell language requirements, try:
Code:
cd /sub/01.05/ && xargs rm < input
If I guessed incorrectly or made bad assumptions, maybe you'll answer some of the questions I asked so we don't have to make assumptions and wild guesses.
I have a large list of filenames from an Excel sheet, which I then translate into a simple text file. I'd like to use this list, which contains various file extensions , to archive these files and then remove them recursively through multiple directories and subdirectories. So far, it looks like... (5 Replies)
I want to search files (basically .cc files) in /xx folder and subfolders.
Those files (*.cc files) must contain #include "header.h" AND x() function.
I am writing it another way to make it clear,
I wanna list of *.cc files that have 'header.h' & 'x()'. They must have two strings, header.h... (2 Replies)
I am trying to remove the lines listed in example File A from File B to achieve File C. Both files are much larger than the examples below. (File B has up to 6,000 lines).
I have searched the forums and I have not been able to find an answer to this particular question.
I tried
grep -v -f... (2 Replies)
I have a text file with a list of items/patterns:
ConsensusfromCGX_alldays_trimmedcollapsedfilteredreadscontiglist(229095contigs)contig12238
ConsensusfromCGX_alldays_trimmedcollapsedfilteredreadscontiglist(229095contigs)contig34624... (1 Reply)
Here is a simplified example of my problem. Say I have the following 3 sub-directories;
./folder1
A.txt
A.sh
./folder2
B.txt
./folder3
C.txt
C.sh
I would like to list the directory names which contain both '.txt' & '.sh' type extensions. I have came up with the following code;... (8 Replies)
Hi,
I have a file containing list of strings like
i:
Pink
Yellow
Green
and I have file having list of file names in a directory
j :
a
b
c
d
Where j contains of a ,b,c,d are as follows
a:
Pink (3 Replies)
Hi,
I want to grep multiple patterns from multiple files and save to multiple outputs. As of now its outputting all to the same file when I use this command.
Input : 108 files to check for 390 patterns to check for. output I need to 108 files with the searched patterns.
Xargs -I {} grep... (3 Replies)
Hello,
I have a file with below content - Example
3
6
69
139
210
345
395
418
490
492
I would like the result as - Multiple of 70 or nearest number in the file less than the multiple of 70
69
139 (5 Replies)
Hello Everyone ,
Iam a newbie to shell programming and iam reaching out if anyone can help in this :-
I have two files
1) Insert.txt
2) partition_list.txt
insert.txt looks like this :-
insert into emp1 partition (partition_name)
(a1,
b2,
c4,
s6,
d8)
select
a1,
b2,
c4, (2 Replies)
Discussion started by: nubie2linux
2 Replies
LEARN ABOUT HPUX
vhardlinks
vhardlinks(1M)vhardlinks(1M)NAME
vhardlinks - checks the consistency of compartment rules for files with multiple hardlinks
SYNOPSIS
mount_point[...]]
DESCRIPTION
checks the consistency of compartment rules for files that have multiple hard links pointing to them. If a file has multiple hard links,
it is possible to create compartment rules such that the file will have conflicting rules controlling access to it.
If you invoke without arguments, a list of mount points is taken from the default file which contains a list of system mount points, one
per line. If the line is commented with a or if it is not the absolute path of a mount point, it is skipped.
Output is logged to the file.
Options
recognizes the following option:
Specifies mount points.
mount_point(s) specifies the mount point(s) to check for files with multiple hard links when using the option. Multiple
mount points are specified as a white space separated list.
Security Restrictions
The user invoking this command must have one of the following authorizations:
A user with authorization can invoke this command from any compartment, while a user with authorization can invoke this command from only
those compartments that have read and write access to the directory heirarchy.
See authadm(1M)).
FILES
Default file; a list of system mount points.
Log file to which output from
is directed.
SEE ALSO cmpt_tune(1M), compartments(4), compartments(5).
vhardlinks(1M)