Is it possible to import a Unix directory into an Excel spreadsheet


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Is it possible to import a Unix directory into an Excel spreadsheet
# 1  
Old 03-24-2006
Is it possible to import a Unix directory into an Excel spreadsheet

Does anyone know if it's possible to import a Unix directory into an Excel spreadsheet?

I'm trying to create a report based on about several thousand files within a Unix server directory, I was thinking if I could import the directory into a spreadsheet it would be easier to sort the data based on whatever criteria I needed. (dates, file size, etc..) Unfortunately I'm a ultra-newb when it comes to Unix, I know a few basic commands but very little on data sorting. Thanks for any suggestions
# 2  
Old 03-24-2006
I guess what you are asking, is how to import the listing of the directory, not the directory itself, something that you would not be able to do... if it is what you are looking for, then shoot something like this :


Code:
# cd your_dir
# ls -l > files_in_mydir

And then import the content into Excel.
# 3  
Old 03-24-2006
You may find CSV easier to import into excel...
Code:
$ ls -l | sed '1d' |\
> awk '{printf("%s,%s,%s,%s,%s,%s,%s,%s,%s\n",$1,$2,$3,$4,$5,$6,$7,$8,$9)}' > somefile
$ cat somefile
-rw-r--r--,1,test,people,0,Mar,24,19:42,test_1
-rw-r--r--,1,test,people,0,Mar,24,19:42,test_2
-rw-r--r--,1,test,people,0,Mar,24,19:42,test_3

Cheers
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to extract data from Active Directory and import in Zimbra Ldap

Hello Experts, I have this specific requirment where i need to download/extract from AD (Firstname, LastName, etc) and upload the same to Ldap used by Zimbra mail server running on Suse Linux. I know how to manually do that, but that is the not the solution. I am not yet sure on how to start... (3 Replies)
Discussion started by: Siddheshk
3 Replies

2. Programming

extract the same format from existing excel file using " Spreadsheet::ParseExcel " module

Hi , can any one tell me,"How to extract the same format from existing excel file to new excel file " using Spreadsheet::WriteExcel or Spreadsheet::ParseExcel module ??? Example_pgm: Below program is used to read existing excel file..In this program "my $cell = $_;" line is used to... (0 Replies)
Discussion started by: kavi.mogu
0 Replies

3. Shell Programming and Scripting

Using Spreadsheet on Perl in UNIX

Very new to UNIX, so still getting used to all this. I made a Perl script where I want to create a spreadsheet file when extracting "data" from a text file. Now, this works perfectly fine on my Windows OS since I'm using the Win32 libraries with Microsoft Excel, but when I want to try it out on... (0 Replies)
Discussion started by: kooshi
0 Replies

4. Shell Programming and Scripting

Trying to send an excel spreadsheet.

And I have to modify this part of the script, I'm not sure what to change the content-type to for this to work, or what else I would need to change here: # This script sends Email acoording to command line arguments. # $1 - file to be attached (full path with name) # $2 - file name as it... (1 Reply)
Discussion started by: NycUnxer
1 Replies

5. AIX

Trying to send an excel spreadsheet.

I may have posted in the wrong section, either way I need some help. And I have to modify this part of the script, I'm not sure what to change the content-type to for this to work, or what else I would need to change here: # This script sends Email acoording to command line arguments. #... (1 Reply)
Discussion started by: NycUnxer
1 Replies

6. UNIX for Dummies Questions & Answers

Download to unix/linux from excel spreadsheet

Hi all, I am not a computer programmer nor a computer specialist but I do create some Excel speadsheets and I need to download the data generated from Excel to a Unix/linux programmed screen. Do you know if there is a way or a "trick" that could make this data transfer automated so it would... (2 Replies)
Discussion started by: claude73
2 Replies

7. UNIX for Advanced & Expert Users

Need Help on Excel with Unix

Hi, My client uploads an Excel file on to Unix server by using web application with more than 20 columns and more than 60000 records in it. I have to check the data in each cell when the file arrived. Is is possible to check the data in cells by running unix script? or Is there any way to convert... (2 Replies)
Discussion started by: sireeshp
2 Replies

8. HP-UX

Excel in Unix

Hi, How can i create an excel sheet in Unix? Actually i need the data from the tables into the excel sheet. Please let me know. Regards, Puspendu (4 Replies)
Discussion started by: puspendu
4 Replies

9. Windows & DOS: Issues & Discussions

import data files from Unix to Windows?

Hi, Is there any way to import data files from Unix system to Windows system? I have many data files on Unix machine generated every night. I need to pick certain data from each file and plug them into this windows file on the network share drive. Anyone has any idea? Thanks in advance! (8 Replies)
Discussion started by: whatisthis
8 Replies
Login or Register to Ask a Question