I'd like find all the files with names containing a certain pattern, in a directory hierarchy - not just a single directory.
For example:
file *.txt
But throughout the entire hierarchy.
Can this be done? If so, how?
Thank you (4 Replies)
I have a directory named DIR. The contents of the directory is something like:
a.sh
b.sh
cghsk.sh
assjsjkd
gdshddll
DFG/
...
...
Where only DFG/ is a folder.
I want to grant execute permission to all(a+x), for all the files directly under the DIR directory except the files that... (4 Replies)
Anyone knows how I can change this script so that it works recursively as well (meaning: *.c files in sub directories will get changed as well)?
for file in *.c
do
cat file.txt "$file" > tempfile
cat tempfile > "$file"
done
rm tempfile (5 Replies)
Hi guys,
I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.
I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also... (1 Reply)
Hi,
I want to display latest files (created or modified) recursively in a path.
I tried in different ways, but didn't get any desired output:
find $path -type f -exec ls -lt {} \; | sort -n -r
find $path -type f -printf %p";" | xargs -d ";" ls -t
Second one is giving the error:... (21 Replies)
Hi,
Need your help in this.
I have an input file that has multiple enrollment_number, somewhat like
1234567
8901234
9856321
6732187
7623465
Now i have to search and delete these enrollment_number recursively from all the files that are within multiple sub-directories of a... (10 Replies)
I would like to write a script that takes something like this:
Line 1
Line 2
Line 3
Line 4
Line 6
Line 7
Line 8
Line 9
etc....
And makes it to look like this:
Line 1|Line 2|Line 3|Line 4|
Line 6|Line 7|Line 8|Line 9|
etc.
I would think it would be fairly easy to use two loops,... (4 Replies)
Hi All,
Could you please help to resolve my following issues:
Problem Description:
Suppose my user name is "MI90".
i.e. $USER = MI90
when i run below command, i get all the processes running on the system containing name MQ.
ps -ef | grep MQ
But sometimes it lists... (8 Replies)
Hi,
this is the structure of the directory
/local/home/app/cases
under cases directory, below are the sub directories and each directory has files.
/local/home/app/cases/1
/local/home/app/cases/2
/local/home/app/cases/3
/local/home/app/cases/4
File types are .txt .sh and so... (5 Replies)
Hi,
I have a directory which contains multiple files with .txt extension, i want to rename all these file to .bak extension using find command, this is what i've tried, please help me to correct this :
find /home/application/test -name '*.txt' -exec rename 's/txt/bak/' {} \;
seems to... (8 Replies)
Discussion started by: mukulverma2408
8 Replies
LEARN ABOUT NETBSD
mount_v7fs
MOUNT_V7FS(8) BSD System Manager's Manual MOUNT_V7FS(8)NAME
mount_v7fs -- mount a 7th Edition(V7) File System
SYNOPSIS
mount_v7fs [-B byte-order] [-o options] special node
DESCRIPTION
The mount_v7fs command attaches the 7th Edition(V7) File System on the special device on to the file system tree at point node. Both special
and node are converted to absolute paths before use.
This command is normally executed by mount(8) at boot time. The options are as follows:
-B byte-order Specify the metadata byte order of the file system. Valid byte orders are 'be', 'le', and 'pdp'. If no byte order is speci-
fied, the file system is mounted in host byte order.
-o Options are specified with a -o flag followed by a comma separated string of options. See the mount(8) man page for possible
options and their meanings.
SEE ALSO mount(2), unmount(2), fstab(5), mount(8)BUGS
The v7fs support is still experimental.
BSD April 29, 2011 BSD