The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need to get pid of a process and have to store the pid in a variable samudha UNIX for Dummies Questions & Answers 7 08-05-2008 04:24 AM
How to Store command O/P to a variable... smartbuddy UNIX for Dummies Questions & Answers 7 08-24-2007 08:49 AM
To store the output in a variable Sudhakar333 Shell Programming and Scripting 2 07-10-2007 09:45 AM
{Urgent very need help} script for conn oracle and get the content bucci Shell Programming and Scripting 15 02-22-2007 09:12 AM
store awk results in a variable forever_49ers Shell Programming and Scripting 1 09-19-2006 11:51 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-08-2008
sunitachoudhury sunitachoudhury is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 36
how to store the first content of the folder in a variable?(Urgent)

Hi All,

I need urgent help. Because just now i have to give this code to my client.

I have a folder name is Testing. this Testing folder contains the following 3 files.

1.txt
2.txt
2.txt

Now I want to store the first value of my folder in a variable say suppose $a.
Means i want that $a=1.txt (It will take from the folder Testing)

Can anybody please tell me the scripting to how to do it???

Please let me know ASAP.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0