I'm trying to write a shell script that recognizes all .txt files in all the subdirectories in my current directory.
Let's say that i have a directory called Applications which consists of many subdirectories on mnay levels.
i want the shell script to look for all .txt files that exist only in DOC / DOCS subdirectories. (the thing is I have many DOC / DOCS subdirectories on different levels, i cant specify the path to them)
this is what i have so far but it's not working:
the first loop is to look into all DOC /DOCS subdirectories
the 2nd loop is suppose to look for all .txt files
and i want to display the name of all .txt files that exist in DOC/DOCS
and that what's the echo is doing.
Regards
Last edited by Scott; 03-30-2011 at 04:12 PM..
Reason: Please use code tags
hi,
i need help to write script in korn shell that will display info. on system paging, system process table.system file table inf.
thank you (1 Reply)
hey i am a bit stuck here. i just started work experience and i need to create a simple script which delete all files in a specify folder which are older then 2 days.
:mad: i tried but it never works!!! anyone! i dont know much but unix since i mostly work on NT here but i dont wanna disapoint my... (2 Replies)
Hi There
I am pretty new to UNIX and have only been using it from a basic point of view,I now want to start using it and learning more , have got a whole lot of books and documentation from the web and am slowly learning.I have written a get script in windows :-
lcd E:\MAIN\PRO\FILES\MAINDB... (1 Reply)
Hi All
I have script that find 777 dir with specific extension like .php .Now after finding all 777 directory i will place in httpd.conf using a directory directive ,Now i was not do that,if directory entry exitst in httpd.conf then script ignor it dont show me at stdout else if it dont find... (2 Replies)
i get stuck here . Anyone could check my work?
the user type a group of upper case letters at a time with 0 at the end. Find and display the first letter in alphabetic order.
For example, input of F, G, K, S, U, G, D, Q, P , the result should be D
Any invalid input character (eg. #, $, 3, a,... (5 Replies)
Hi all! Im trying to get this script to check for folders in a year/month/day folder structure and if the day doesnt exist then it makes the day. It will also make sure all of the days before todays date exist as well. This script assumes that the month and year folder already exist. It works... (3 Replies)
Using the KSH, write a shell script called display_by_length, which takes an absolute pathname to a directory and displays all ordinary files in the directory ordered by their length; for each file listed, display the name of the file and its length - nothing else. Extend this script to take an... (1 Reply)
Hi,
I need to create a script that we will schedule to run say every 30 mins to check a directory for files that have been present for a set period of time.
Situation we have is that we have an input folder where files are processed from and once processed they get moved to a done folder,... (1 Reply)
Hi,
I'm developing my first bash script and have made good progress but stuck at this point.
I've run sed on a text file to extract some data and have saved it into a variable e.g.
$blah
the variable contains emails as follows e.g. <a@b.com> <b@c.com>
I'm now trying to edit... (2 Replies)
Hi All,
I am beginner in scripting. I wrote a simple script to perform some task. It seem to have some error in command line,
Kindly somebody help.
Thanks
#!/bin/bash
date
cd /home/poojasaxena/Desktop/CMS/script/DataMCMatch
function pause(){
read -p "$*"
}
FILE=$1... (22 Replies)
Discussion started by: nrjrasaxena
22 Replies
LEARN ABOUT SUSE
doc
DOC(4) Kernel Interfaces Manual DOC(4)NAME
DOC - (Pilot standard text document) file format
SYNOPSIS
struct doc_record0 { /* 16 bytes total */
Word version; /* 1 = plain text, 2 = compressed text */
Word reserved1;
DWord doc_size; /* uncompressed size in bytes */
Word num_recs; /* not counting itself */
Word rec_size; /* in bytes: usually 4096 (4K) */
DWord reserved2;
};
DESCRIPTION
The Doc file format is the standard text document format used by all models of the Palm Pilot. A Doc file is a pdb(4) file: this manual
page describes only those aspects specific to Doc files.
A Doc file consists of 0 to num_recs records; record 0 is the header for the document. (This header is distinct from the pdb(4) header.)
The remaining records contain text, either plain or compressed depending upon version.
Word Sizes
In the synopsis above, the types ``Word'' and ``DWord'' are used just as in the Pilot headers. The type ``Word'' is 16 bits; the type
``DWord'' is 32 bits. Both are in big-endian format.
Compression Format
A character ``c'' in a compressed record is in one of four classes:
01-08 Copy ``c'' bytes
00,09-7F Self
80-BF Sequence
C0-FF A space plus the ASCII character ``c ^ 0x80''
SEE ALSO txt2pdbdoc(1), html2pdbtxt(1), pdbtxt2html(1), pdb(4)
Christopher Bey and Kathleen Dupre. Palm File Format Specification, Document Number 3008-003, Palm, Inc., May 16, 2000.
AUTHOR
Paul J. Lucas <pauljlucas@mac.com>
txt2pdbdoc January 21, 2005 DOC(4)