Hai I just want to find a file *.txt in particular direcotry and display the file name puls the content. Do someone know hot to do this, thanks.
I try :
find test/ -name '*.txt' | xargs cat
but It does'nt print out the file name, i want something below print out in my screen :
test/1.txt... (4 Replies)
Hi, hopefully this is a fairly simple Q&A.
I have a clean file list of approximately 180 filenames with no directory or slashes in front of the filename nor any extension or dot ".". I would like to read from this list, find these files recursively down through directory trees, copy the files... (1 Reply)
cat myname.txt
John Doe I
John Doe II
John Doe III
-----------------------------------------------------------------------
for i in `cat myname.txt`
do
echo This is my name: $i >> thi.is.my.name.txt
done
-----------------------------------------------------------------------
cat... (1 Reply)
Hi,
I am having trouble getting a combination of commands to work.
I need to traverse through all sub-directories of a certain directory and 'cat' the contents of a particular file in the sub-directories.
The commands on their own work but when I combine them I get no output.
The... (4 Replies)
I have a file with a single filename in it, which I want to assign to a BASH variable, so I've been trying:
c=$(head -1 somefile)
echo $c
which outputs correctly, but them when I do
...
somecommand $c
it says it can't find the file, is that because it's grabbing the whole line, and... (5 Replies)
I have a diff command that does what I want but when comparing large text/log files, it uses up all the memory I have (sometimes over 8gig of memory)
diff file1.txt file2.txt | grep '^<'| awk '{$1="";print $0}' | sed 's/^ *//'
Is there a better more efficient way to find the lines in one file... (5 Replies)
Hi everyone, so I have a script create a login file to log into the sftp remote server, go to a certain directory and get the list of files in that direction into a text file in another folder (local folder). Here is the piece of code
echo "#!/usr/local/bin/expect -f" >>... (5 Replies)
Hi dears
i have text file like this:
INPUT.txt
001_1_173 j nuh ]az
001_1_174 j ]esma. nuh ]/.xori
.
.
. and have another text
like this
TABLE.txt
j j
nuh word1... (6 Replies)
Hi All,
I have a filelist which contains the "ls" output, i want to extract the filenames written in this files based on date. I know i can run loop and extract the file but i want to avoid it. also there is find command which can be used on directory i.e.
find . -type f -newermt "2019-09-25"... (3 Replies)
Hi, I'm new here and this is my first post. I used command line Unix at work for 3 years... about 10 years ago! Now I can't figure out nor hunt down examples of how to do the following:
Say I built a list of file to backup like this:
find ~ -name "*.pdf" -print >> MYPDF.txt
So I am using find... (6 Replies)
Discussion started by: hwilliam777
6 Replies
LEARN ABOUT DEBIAN
avinfo
AVINFO(1) User Commands AVINFO(1)NAME
AVInfo - Audio/Video file information automatic extractor
SYNOPSIS
avinfo [FILENAME] [OPTIONS] [TEMPLATE] [OUTPUT]
avinfo [-l=FILELIST] [OPTIONS] [TEMPLATE] [OUTPUT]
avinfo -l- [OPTIONS] [TEMPLATE] [OUTPUT]
avinfo [--help | --version]
DESCRIPTION
Extracts information from FILENAME or files in FILELIST and generates a report.
OPTIONS:
-f=extension
forces the use of module associated with extension
-l=list
use filelist (use -l- for stdin)
-i=ms delay between files in filelist (in ms) (/*TODO*/)
-e=ext exclude an extension (do not apply associated module)
-m=number
max line length (0 - no restriction)
-s=value
for advanced tuning of modules (/*TODO*/)
-v=name=value
set int. variable 'name' to 'value' (text or number)
External TEMPLATEs:
-th=template
header template (string, use without value to disable)
-thf=filename
get header template from a file
-tb=template
body template (string, use without value to disable)
-tbf=filename
get body template from a file
-tf=template
footer template (string, use without value to disable)
-tff=filename
get footer template from a file
Built-in TEMPLATEs:
--default
used by default
--description
for creating (updating) descrpipt.ion files
--list for filelist (plain text) generation
--html-list
for filelist (html) generation
--csv-list
for filelist (CSV, e.g. for Excel)
--short
alt. version of --default template
--far "nice" formated report (for FAR Manager) (contains MS-DOS pseudographic characters)
OUTPUT:
-o=file
file to write the report to (default is stdout)
Other OPTIONS:
--help prints this help page
--version
prints avinfo version and copyright
You can use ':' instead of '=' in all OPTIONS or just omit it.
TEMPLATEs use AVInfo Simple Script (A.S.S.) syntax.
Examples of commands:
avinfo file.ogm --raw
find . -name '*.avi' -print | avinfo -l- --html-list -o=avilist.html
avinfo -l:list -thf:header -tbf=body -tff=footer >report
SEE ALSO
Additional documentation for AVInfo can be found in the package documentation directory.
(c) George Shuklin, 2001-2004, http://shounen.ru/soft/avinfo/
This is free software. You are welcome to redistribute it under the terms and conditions of GNU General Public License.
AVInfo 1.0 alpha 15 [Balalaika] April 2005 AVINFO(1)