How can I look at a certain directory and list all the file names, locations and sizes of each file in the current directory and all subdirectories? (2 Replies)
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
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)
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)
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)
Hi , Need to shell script to extracts files names and write those to another file in different directory.
input file is
inputfile.txt
abc|1|bcd.dat
123 david123
123 rudy2345
124 tinku5634
abc|1|def.dat
123 jevid123
123 qwer2345
124 ghjlk5634
abc|1|pqr.txt
123 vbjnnjh435
123 jggdy876... (9 Replies)
Hi all,
I need a shell script to write into a .txt file the no of files in a directory with extension and separated by comma in between. For eg, a directory contains files like
a.csv
b.csv
c.csv
d.csv
Then the output in the output.txt file should be like
a.csv,b.csv,c.csv,d.csv
... (3 Replies)
Hi All,
Can any one help me to list out the directory names which contain the specified file.
See for example
File name : file.201307014.LKT
Have the directory structure as below.
/app/work/data/INDIA/file.201307014.LKT
/app/work/data/AMERICA/file.201307014.KTP... (5 Replies)
If I have 5 files in a directory, what is the best way to remove specific files in it?
For example,
snps.ivg
probes.ivg
Desired output
probes.ivg
probes.txt
all.txt
Basically, removing those files with "snp" in the filename regardless of extension. Thank you :). (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT DEBIAN
shtool-tarball
SHTOOL-TARBALL.TMP(1) GNU Portable Shell Tool SHTOOL-TARBALL.TMP(1)NAME
shtool-tarball - GNU shtool command for rolling standardized tarballs
SYNOPSIS
shtool tarball [-t|--trace] [-v|--verbose] [-o|--output tarball] [-c|--compress prog] [-d|--directory directory] [-u|--user user]
[-g|--group group] [-e|--exclude pattern] path [path ...]
DESCRIPTION
This command is for rolling input files under path into a distribution tarballs which can be extracted by tar(1).
The four important aspects of good open source software tarballs are: (1) unpack into a single top-level directory, (2) top-level directory
corresponds to the tarball filename, (3) tarball files should be sorted and (4) arbitrary names for file owner and group.
OPTIONS
The following command line options are available.
-v, --verbose
Display some processing information.
-t, --trace
Enable the output of the essential shell commands which are executed.
-o, --output tarball
Output tarball to file tarball.
-c, --compress prog
Pipe resulting tarball through compression program prog.
-d, --directory directory
Sets the top-level directory into which the tarball unpacks. By default it is tarball without the trailing ".tar.*" extension.
-u, --user user
The user (owner) of files and directories in the tarball to user.
-g, --group group
The group of files and directories in the tarball to group.
-e, --exclude pattern
Exclude files and directories matching comma-separated list of regex pattern from the tarball. Directories are expanded before the
filtering takes place. The default filter pattern is ""CVS,\.cvsignore,\.svn,\.[oa]$"".
EXAMPLE
# Makefile.in
dist:
...
V=`shtool version -d short ...`;
shtool tarball -o foobar-$$V.tar.gz -c 'gzip -9'
-u bar -g gnu -e 'CVS,.cvsignore' .
HISTORY
The GNU shtool tarball command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1999 for GNU shtool.
SEE ALSO shtool(1), tar(1), compress(1).
18-Jul-2008 shtool 2.0.8 SHTOOL-TARBALL.TMP(1)