Sponsored Content
Top Forums Shell Programming and Scripting how to copy files followed by list of names of all the files in /etc? Post 302474848 by pcbuilder on Thursday 25th of November 2010 04:01:38 PM
Old 11-25-2010
.......

Last edited by pcbuilder; 11-25-2010 at 05:44 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

copy files with invalid names

Hi all, I have to copy a directory to another location. While doing so with the cp command I got some errors due to invalid filenames of some files. For example, some files have a colon in their names, which is throwing error. These files are not copied to the destination. How to copy... (1 Reply)
Discussion started by: fermisoft
1 Replies

2. UNIX for Dummies Questions & Answers

show a list of files whose names begin

How do I show a list of files whose names begin with c and are two characters long. ls {2\} ? thanks (10 Replies)
Discussion started by: JudoMan
10 Replies

3. Shell Programming and Scripting

find list of files from a list and copy to a directory

I will be very grateful if someone can help me with bash shell script that does the following: I have a list of filenames: A01_155716 A05_155780 A07_155812 A09_155844 A11_155876 that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Discussion started by: manishabh
3 Replies

4. Shell Programming and Scripting

how can i copy a list of files with different names into others directory have the same name

dear all. how can i copy a list of files with different names into others directory have the same name like i have 3 files 10_10 10_10_11 10_10_11_12 and i have 3 directories 10_10 10_10_11 10_10_11_12 how can i make a loop to cp this files into the directory have the same name like... (0 Replies)
Discussion started by: t17
0 Replies

5. UNIX for Dummies Questions & Answers

How can i copy a list of files with different names into others directory have the same name?

dear all. how can i copy a list of files with different names into others directory have the same name like i have 3 files 10_10 10_10_11 10_10_11_12 and i have 3 directories 10_10 10_10_11 10_10_11_12 how can i make a loop to cp this files into the directory have the same name like... (31 Replies)
Discussion started by: t17
31 Replies

6. Shell Programming and Scripting

Compare list [ names and size files ]

Hello, I've downloaded a huge amont of files I've got a list of files from a remote server. -rw-r--r-- 1 str661 strem 453465260 Dec 16 15:54 SATRYS2V1_20021218_temp_bias.nc -rw-r--r-- 1 str661 strem 17669468 Dec 16 18:01 SATRYS2V1_20021225_hdyn_bias.nc -rw-r--r-- 1... (9 Replies)
Discussion started by: Aswex
9 Replies

7. Shell Programming and Scripting

Copying List of Files Under Different File Names ?!

Hi to all here , Excuse me for the lamer question but I need UNIX command for copying List of Files Under Different File Names ! for example I have this list: new_001.jpg new_002.jpg new_003.jpg ..... I want to copy all files that start with "new_" to the same directory but under... (7 Replies)
Discussion started by: boboweb_
7 Replies

8. Shell Programming and Scripting

Copy list of files from a keyword list to another directory

Hello, I have a folder with a massive amount of files, and I want to copy out a specific subset of the files to a new directory. I would like to use a text file with the filenames listed, but can't get it to work. The thing I'm hung up on is that the folder names in the path can and do have... (5 Replies)
Discussion started by: twjolson
5 Replies

9. UNIX for Dummies Questions & Answers

How to list the names of the files from all the subdirectories?

Hi, I'm currently trying to print the names of all the .txt files in the subdirectories that contain the string I'm searching. I tried with this code, but it seems that it searches for the names that matches the string instead of searching for the string in the individual files and printing the... (2 Replies)
Discussion started by: nuclearpenguin
2 Replies

10. Shell Programming and Scripting

Finding a string in a list of files, print file names

I'm interested in writing a report script using BASH that searches all of the files in a particular directory for a keyword and printing a list of files containing this string... In fact this reporting script would have searches for multiple keywords, so I'm interested in making multiple... (2 Replies)
Discussion started by: chemscripter904
2 Replies
ncheck(8)						      System Manager's Manual							 ncheck(8)

NAME
ncheck - lists i-number or tag and path name for files in a local file system. SYNOPSIS
/usr/sbin/ncheck [-i numbers] [-asm] file_spec [file_spec...] PARAMETERS
Specifies one or more file systems. Specify any file system by entering its full path name or its mount point. The full path name is the name entered in the file-spec field of the file system's entry in the /etc/fstab file. The mount point is the name entered in the mnt_point field of the file system's entry in the /etc/fstab file. You can also specify a UFS file system by entering the name of its device special file. For example: /dev/disk/dsk3c. You can also specify an AdvFS fileset by entering the name of the file domain, a pound sign (#) character, and the name of the file- set. For example: root_domain#root. FLAGS
Includes in the list the path names . (dot) and .. (dot dot), which are ordinarily suppressed. Lists only those files with the specified i-numbers (UFS) or tags (AdvFS). If you enter a zero (0) all allocated numbers will be displayed. Includes in the list the mode, UID, and GID of the files. To use this flag you must also specify either the -i or the -s flag on the command line. Lists only the special files and files with set-user-ID mode. DESCRIPTION
The ncheck command with no flags generates a list of all files on every specified file system. The list includes the path name and the corresponding i-number or tag of each file. Each directory file name in the list is followed by a /. (slash dot). Use the available flags to customize the list to include or exclude specific types of files. The files are listed in order by i-number or tag. To sort the list in a more useful format, pipe the output to the sort command. NOTES
The term file_spec represents either a UFS file system or an AdvFS fileset. To uncover concealed violations of security policy, that is, the inappropriate use of the set-user-ID mode, issue the command with the -s flag to list only special files and files with set-user-ID mode. RESTRICTIONS
You must be the root user to use this command. The ncheck command checks the /etc/fstab file for the specified domain and file system entry. If there is no entry in /etc/fstab for the specified file system, an error message is displayed to indicate that the file does not exist. DIAGNOSTICS
When the file system structure is improper, ?? (question mark question mark) denotes the parent of a parentless file. A path name begin- ning with ... (dot dot dot) denotes a loop. ERRORS
The ncheck command can be used only for checking local file systems. The "nnn" string identifies the file system type. FILES
Specifies the command path RELATED INFORMATION
sort(1), quot(8). delim off ncheck(8)
All times are GMT -4. The time now is 04:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy