Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help displaying contents of Directories - Urgent Post 302308753 by Franklin52 on Monday 20th of April 2009 07:45:39 AM
Old 04-20-2009
No duplicate or cross-posting, please read the rules.

Continue here:

https://www.unix.com/shell-programmin...#post302308740

Thread closed.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Delete Directories and Contents

How to delete all subdirectories and contents? oh, and if they are hard linked? (1 Reply)
Discussion started by: t4st33@mac.com
1 Replies

2. Shell Programming and Scripting

Beset Scripting langauge to delete old directories and contents?

What would the best scripting language be for selecting all the directories in the current directory that are over a week old and deleting there contents? Perl? bash? groovy? ruby? something else? How would you do it? I got a start with perl in the beginners@perl.org and I started to think:... (3 Replies)
Discussion started by: siegfried
3 Replies

3. Shell Programming and Scripting

Help with Shell Script displaying Directories

I am new to shell programming and have an assignment question which requires me to list the contents of the present working directory in 4 column format and highlight any subdirectories. It then requires me to develop the shell script to accept a directory name as a positional parameter (if no... (11 Replies)
Discussion started by: cjnd1988
11 Replies

4. Shell Programming and Scripting

Passing filename as parameter and displaying the file contents

Hi All, Its extremely urgent regarding the following requirement. I have created few files in a directory. I have write a program in shell scripting such that it prompts for the filename . once the filename is entered,it should print the contents of the file. Can anyone help with... (7 Replies)
Discussion started by: radhi2424
7 Replies

5. Shell Programming and Scripting

compare the contents of two directories

i have been asked to write a bash shell script comparing two directories and sed or awk should not be used in this assignment. compdir will compare filenames in two directories, and list information about filenames that are in one directory but not the other. The information listed will be a long... (1 Reply)
Discussion started by: soccerball
1 Replies

6. UNIX for Dummies Questions & Answers

Displaying contents with Echo

Hello, How can i display the below ... say echo "Start \n Analyse \n ~/temp/input.txt \nStop" Now my output should look like below Start Analyse This is from input file Stop I tried echo "Start \n Analyse \n $var \nStop where $var = "~/temp/input.txt".. It did not work out..... (3 Replies)
Discussion started by: sathyaonnuix
3 Replies

7. Shell Programming and Scripting

Folder contents getting appended as strings while redirecting file contents to a variable

Hi one of the output of the command is as below # sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/' Resource List : <br> *************************** 1. row ***************************<br> ... (2 Replies)
Discussion started by: vivek d r
2 Replies

8. UNIX for Advanced & Expert Users

Appending a files contents to the end of a specific file name in several directories

Here is my dir structure: /tmp/dave/myappend.txt /tmp/dave/dir1/test.txt /tmp/dave/dir2/test.txt /tmp/dave/dir3/test.txt /tmp/dave/dir4/test.txt I want to append the contents of myappend.txt to the end of each file with the name "test.txt" in all dirs in /tmp/dave/ I have tried this:... (2 Replies)
Discussion started by: bigd213
2 Replies

9. Shell Programming and Scripting

**URGENT ** : Comparing the pattern of the file names in 2 different directories

Hi, I have got a requirement for which i need your help. The following problem is required to get solved in PERL SCRIPT. Here is the requirement. There are 4 folders say SRC_DIR1, SRC_DIR2 and TGT_DIR_1,TGT_DIR_2 (Note: both path of SRC_DIR1 & SRC_DIR2 are different but both path of... (1 Reply)
Discussion started by: shadow_fawkes
1 Replies

10. Shell Programming and Scripting

Clear contents of specified directories, then return exit status

Hello, this is my first post here. I'm attempting to write a bash shell script to rm the contents of a directory without deleting the directory, specifically in OS X 10.10 . Here's what I have: function clear() { USER="$USER" DIR=$1 rm -rfv /Users/"$USER"/library/$DIR/* } clear... (6 Replies)
Discussion started by: YouNicks
6 Replies
MAKEWHATIS(8)						    BSD System Manager's Manual 					     MAKEWHATIS(8)

NAME
makewhatis -- create whatis database SYNOPSIS
makewhatis [-a] [-i column] [-n name] [-o file] [-v] [-L] [directories ...] DESCRIPTION
The makewhatis utility collects the names and short descriptions from all the unformatted man pages in the directories and puts them into a file used by the whatis(1) and apropos(1) commands. Directories may be separated by colons instead of spaces. If no directories are speci- fied, the contents of the MANPATH environment variable will be used, or if that is not set, the default directory /usr/share/man will be pro- cessed. The options are as follows: -a Appends to the output file(s) instead of replacing them. The output will be sorted with duplicate lines removed, but may have obsolete entries. -i column Indents the description by column characters. The default value is 24. -n name Uses name instead of whatis. -o file Outputs all lines to the file instead of */man/whatis. -v Makes makewhatis more verbose about what it is doing. -L Process only localized subdirectories corresponding to the locale specified in the standard environment variables. ENVIRONMENT
LC_ALL, LC_CTYPE, LANG These variables control what subdirectories will be processed if the -L option is used. MACHINE If set, its value is used to override the current machine type when searching machine specific subdirectories. MANPATH Determines the set of directories to be processed if none are given on the command line. FILES
/usr/share/man Default directory to process if the MANPATH environment variable is not set. */man/whatis The default output file. DIAGNOSTICS
The makewhatis utility exits 0 on success, and >0 if an error occurs. SEE ALSO
apropos(1), whatis(1) HISTORY
The makewhatis command appeared in FreeBSD 2.1. AUTHORS
The makewhatis program was originally written in Perl and was contributed by Wolfram Schneider. The current version of makewhatis was rewritten in C by John Rochester. BSD
May 12, 2002 BSD
All times are GMT -4. The time now is 03:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy