Sponsored Content
Top Forums Shell Programming and Scripting How to read file names in the directory? Post 302415985 by dineshmurs on Saturday 24th of April 2010 05:27:42 AM
Old 04-24-2010
How to read file names in the directory?

I am having n files in a directory i want to read all the file names from the script file .It is better if any one provide a sample script.

Elaborating the scenario:

i am having n number of sql files in a directory i am running all the sql files from a single script.


sqlplus uname/password@sid @<path of directory><file-name>


i want to all the file names .
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

File and Directory Names become hidden

Something very weird has been happening when I'm creating files and directories. When I create a directory, at times depending on the directory name and depth, it becomes hidden and can only be seen typing "ls -a". When I say the name of the directory matters, "my_c++" will be hidden but using... (10 Replies)
Discussion started by: dbinsol1
10 Replies

2. Shell Programming and Scripting

directory names in a flat file

Hi, Consider a flat file abc.conf contains some rows. Each row contains the directory name with full path. now I want to find a particular file in every directory which are mentioned in the abc.conf file. How it can be done through unix shell script. (2 Replies)
Discussion started by: surjyap
2 Replies

3. UNIX for Dummies Questions & Answers

Change All File Names in a Directory

Hi, If I have a directory full of say 100 random files, and I would like to organize them, for example: FILE001, FILE002, FILE003, FILE004, etc. How would I do this from Terminal, instead of manually changing each file? I'm using Mac OS X, if that makes a difference. Thank you in advance... (8 Replies)
Discussion started by: andou
8 Replies

4. UNIX for Dummies Questions & Answers

How can I sort the file names in the directory

Hi , I have a list of files in the directory I want to sort based on the file name. But in the middle of filename contains the number based on that I need to sort.Could you suggest me on the same? Example filenames: /user1$ls RS.DEV.ISV.F1.RS.REFDATA.DATA... (1 Reply)
Discussion started by: praveen.thumati
1 Replies

5. Shell Programming and Scripting

Searching for file names in a directory while ignoring certain file names

Sun Solaris Unix Question Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
Discussion started by: 2reperry
2 Replies

6. Shell Programming and Scripting

Grepping file names, comparing them to a directory of files, and moving them into a new directory

got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies

7. UNIX for Dummies Questions & Answers

List Directory names which have the file

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)
Discussion started by: Balasankar
5 Replies

8. Shell Programming and Scripting

Compare file names on directory

Dears, Would you please help on following bash script: I want to get the most recent file named alfaYYYYMMDD.gz in one directory: for example: in directory /tmp/ ls -ltr alfa20130715.gz holding.gz alfa20130705.gz sart.txt merge.txt.gz alfa20130802.gz my result shoud be... (1 Reply)
Discussion started by: maxsub
1 Replies

9. UNIX for Beginners Questions & Answers

Renaming the file names in a directory

Hi, I have about 60 files in a directory and need to rename those files. For example the file names are i_can_phone_yymmdd.txt (where yymmdd is the date. i.e 170420 etc) i_usa_phone_1_yymmdd.txt i_eng_phone_4_yymmdd.txt The new file names should be phone.txt phone_1.txt phone_4.txt I am... (4 Replies)
Discussion started by: naveed
4 Replies
DEBCONF-UPDATEPO(1)						    po-debconf						       DEBCONF-UPDATEPO(1)

NAME
       debconf-updatepo - update PO files about debconf templates

SYNOPSIS
       debconf-updatepo [-v] [-h] [--podir=DIR] [--skip-pot] [--skip-merge] [--msgid-bugs-address=EMAIL]

DESCRIPTION
       This program reads po/POTFILES.in to determine which master files need to be processed, then extracts new gettext strings into
       po/templates.pot and updates all po/*.po files.	This script can be called either in the top-level directory, or in the debian or debian/po
       subdirectories.	It is run by developer and/or translator to update PO files when the English text is modified in templates files.

OPTIONS
       -h, --help
	   Display a usage summary and exit.

       -v, --verbose
	   Process in verbose mode.

       --podir=DIR
	   Set directory for PO files.	By default PO files are searched in debian/po, po and ../po directories in that order.

       --skip-pot
	   Do not generate a new po/templates.pot file.

       --skip-merge
	   Do not merge existing PO files with po/templates.pot.

       --msgid-bugs-address=EMAIL
	   Set the email address that will be specified in the POT's Report-Msgid-Bugs-To field.

	   By default, this field is set to <package>@package.debian.org.

	   It is intended for the maintainers of Debian based distributions, and should be used in the following cases:

	   o   The package is not present in Debian (and thus the <package>@packages.debian.org address does not exist).

	   o   The maintainer made significant changes in the debconf templates (or added templates to a Debian package without templates), and
	       does not want to bother the Debian maintainer with bug reports that won't be relevant for the Debian maintainer.

	   The default address is preferred to avoid corrections in the Debian based distribution without a notification to the Debian maintainer.

SEE ALSO
       debconf-gettextize(1), po2debconf(1), podebconf-report-po(1), po-debconf(7).

AUTHOR
	 Denis Barbier <barbier@linuxfr.org>

								    2016-10-01						       DEBCONF-UPDATEPO(1)
All times are GMT -4. The time now is 08:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy