08-29-2012
Don,
Actually i do not have input or output files i can provide. But i can explain you what i need. i just need a script which when run should take the text doc(contains list of files which are to be copied) as input and then each file has to be checked to see if they belong to any of the 5 groupnames that we are going to mention in the other list document, id they belong to any of the group, then they should be copied to destinated location, If not we just have to ignore those files.
---------- Post updated at 10:05 AM ---------- Previous update was at 10:04 AM ----------
Quote:
Originally Posted by
draghun9
Don,
Actually i do not have input or output files i can provide. But i can explain you what i need. i just need a script which when run should take the text doc(contains list of files which are to be copied) as input and then each file has to be checked to see if they belong to any of the 5 groupnames that we are going to mention in the other list document, id they belong to any of the group, then they should be copied to destinated location, If not we just have to ignore those files.
Don,
Actually i do not have input or output files i can provide. But i can explain you what i need. i just need a script which when run should take the text doc(contains list of files which are to be copied) as input and then each file has to be checked to see if they belong to any of the 5 groupnames that we are going to mention in the other list document, id they belong to any of the group, then they should be copied to destinated location, If not we just have to ignore those files.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all !!!
I need this sample script urgently. Please help.
Suppose I do an "ls -ltr" in a directory and store the output in a text file (say "a.txt").
What I need to do is to write a shell script which reads file-names from "a.txt" and copies only those files to VSS. Let's say the destination... (1 Reply)
Discussion started by: devalin
1 Replies
2. Shell Programming and Scripting
G'day,
I was wanting to write a shell script that checks an ftp server for the presence of new files, then get those files. In so much as the get, this is pretty straight forward, but I cannot work out how to get a list of files to check. Is it possible for a shell script to get the output of... (1 Reply)
Discussion started by: Elric of Grans
1 Replies
3. Shell Programming and Scripting
Hello,
I am new to Unix and shell scripting. I am trying to find unowned files and groups on my servers. I know, i could use the below command to find it on individual server.
#find / -nouser -o -nogroup -print
But I was wondering, if someone could help with a shell script so that I can... (2 Replies)
Discussion started by: ut916
2 Replies
4. Shell Programming and Scripting
Hi Guru's,
I have to write a shell script which groups file names based upon the certain matching string pattern, then creates the Tar file for that particular group of files and then zips the Tar file created for the respective group of files.
For example, In the given directory these files... (3 Replies)
Discussion started by: rahu_sg
3 Replies
5. Shell Programming and Scripting
guys,
I am new shelll scripting..
this a question on passt exam paper, I was trying to solve it , I can not.
the question is as follow?
a. Write a shell script to count the number of accounts which belong to particular primary group in a standard UNIX system which uses local... (1 Reply)
Discussion started by: gurmad
1 Replies
6. UNIX for Dummies Questions & Answers
i want run query to identify witch groups that user A belong,
CN=name,CN=Users,DC=mydomain ?? (1 Reply)
Discussion started by: prpkrk
1 Replies
7. Shell Programming and Scripting
i just need help to write a shell script which when run should take the text doc(contains list of files which are to be copied) as input and then each file has to be checked to see if they belong to any of the 5 groupnames that we are going to mention in the other list document, id they belong to... (1 Reply)
Discussion started by: draghun9
1 Replies
8. UNIX for Beginners Questions & Answers
Good evening, i need your help please
I've got a file script thet deletes about half millions of files, and i want those files to be printed in a log file as an evidence those files were removed.
#/bin/sh
rm "/home/e-smith/files/users/bill/Maildir/cur/1392373930.28512.comp01:2,S"
rm... (6 Replies)
Discussion started by: alexcol
6 Replies
9. Shell Programming and Scripting
I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
10. Shell Programming and Scripting
I have to provide a listing of all usernames and group assignments on Linux servers running SLES 12 SP 3. I am trying to automate this via a #for loop. It is not doing as desired and could use a little assistance. Here is the code:
#!/bin/bash
for uname in 'cat $(hostname)_unlist.txt'
do... (8 Replies)
Discussion started by: Kentlee65
8 Replies
LEARN ABOUT DEBIAN
ils-sleuthkit
ILS(1) General Commands Manual ILS(1)
NAME
ils - List inode information
SYNOPSIS
ils [-emOpvV] [-f fstype ] [-s seconds ] [-i imgtype ] [-o imgoffset ] [-b dev_sector_size] image [images] [start-stop]
ils [-aAlLvVzZ] [-f fstype ] [-s seconds ] [-i imgtype ] [-o imgoffset ] image [images] [start-stop]
DESCRIPTION
ils opens the named image(s) and lists inode information. By default, ils lists only the inodes of removed files.
Arguments:
-e List every inode in the file system.
-f fstype
Specifies the file system type. Use '-f list' to list the supported file system types. If not given, autodetection methods are
used.
-s seconds
The time skew of the original system in seconds. For example, if the original system was 100 seconds slow, this value would be
-100.
-m Display the inode details in the format that the mactime program reads (replaces the ils2mac script from TCT)
-O List only inodes of removed files that are still open or executing. This option is short-hand notation for -aL "(see the fine con-
trols section below). (this used to be -o).
-p Display orphan inodes (unallocated with no file name)
-r (default) List only inodes of removed files. This option is short-hand notation for -LZ (see the fine controls section below).
-i imgtype
Identify the type of image file, such as raw or split. Use '-i list' to list the supported types. If not given, autodetection
methods are used.
-o imgoffset
The sector offset where the file system starts in the image.
-b dev_sector_size
The size, in bytes, of the underlying device sectors. If not given, the value in the image format is used (if it exists) or
512-bytes is assumed.
-v Turn on verbose mode, output to stderr.
-V Display Version.
image [images]
One (or more if split) disk or partition images whose format is given with '-i'.
start-stop
Examine the specified inode number or number range.
Fine controls:
-a List only allocated inodes: these belong to files with at least one directory entry in the file system, and to removed files that
are still open or executing.
-A List only unallocated inodes: these belong to files that no longer exist.
-l List only inodes with at least one hard link. These belong to files with at least one directory entry in the file system.
-L List only inodes without any hard links. These belong to files that no longer exist, and to removed files that are still open or
executing.
-z List only inodes with zero status change time. Presumably, these inodes were never used.
-Z List only inodes with non-zero status change time. Presumably, these belong to files that still exist, or that existed in the past.
The output format is in time machine format. The output begins with a two-line header that describes the data origin, and is followed by a
one-line header that lists the names of the data attributes that make up the remainder of the output:
st_ino The inode number.
st_alloc
Allocation status: `a' for allocated inode, `f' for free inode.
st_uid Owner user ID.
st_gid Owner group ID.
st_mtime
UNIX time (seconds) of last file modification.
st_atime
UNIX time (seconds) of last file access.
st_ctime
UNIX time (seconds) of last inode status change.
st_dtime
UNIX time (seconds) of file deletion (LINUX only).
st_mode
File type and permissions (octal).
st_nlink
Number of hard links.
st_size
File size in bytes.
st_block0,st_block1
The first two entries in the direct block address list.
SEE ALSO
mactime(1)
LICENSE
This software is distributed under the IBM Public License.
HISTORY
First appeared in The Coroners Toolkit (TCT) 1.0.
AUTHOR(S)
Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA
This version is maintained by Brian Carrier (carrier at sleuthkit dot org)
Send documentation updates to <doc-updates at sleuthkit dot org>
ILS(1)