473,385 Members | 1,267 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Unix command question

17
I am wanting to list the Unix command to list all files (but NOT all data on the files) that are data files (the file name ends with .data) in the GRE50 directory, and put the list in file datafiles in the home directory. GRE50 is a subdirectory of the home directory.

ls GRE50/*.data > ~/datafiles
Does this look right?? Thanks!
Feb 3 '08 #1
4 1612
numberwhun
3,509 Expert Mod 2GB
I am wanting to list the Unix command to list all files (but NOT all data on the files) that are data files (the file name ends with .data) in the GRE50 directory, and put the list in file datafiles in the home directory. GRE50 is a subdirectory of the home directory.

ls GRE50/*.data > ~/datafiles
Does this look right?? Thanks!
You know, instead of posting to this list and waiting whatever amount of time you are waiting for an answer, you could have just tried this and found out that it does seem correct for what you describe, yes.

I am not deterring you from asking questions, but if it is something this simple, do try it yourself first.

Regards,

Jeff
Feb 3 '08 #2
aemado
17
I realize that, but as I mentioned before, I am just starting with this, and learning basic commands. We have yet to even start with CSLAB, or actually type commands in anything. Our homework is simply based on the notes he has provided, and we do not have access to the system to work with yet. My only experience is very limited C++. It would certainly be easier if I could just play around with it. Thanks for answering though, I am just trying to get an understanding of all of this before we actually have to start with programming.
Feb 4 '08 #3
Nepomuk
3,112 Expert 2GB
...and we do not have access to the system to work with yet...
I'd recommend downloading a Linux LiveCD then, the commands are mostly the same as with most Unixes and that way you can test your ideas yourself.
Concerning LiveCDs, I'd recommend either Knoppix, which is a very widespread Live CD or for example DSL (Damn Small Linux) which, apart from being damn small can run inside of Windows!
Of course, most major Linux Distributions have LiveCDs nowadays (and possibly some Unixes too), so you can have a look around.

Greetings,
Nepomuk
Feb 7 '08 #4
numberwhun
3,509 Expert Mod 2GB
I'd recommend downloading a Linux LiveCD then, the commands are mostly the same as with most Unixes and that way you can test your ideas yourself.
Concerning LiveCDs, I'd recommend either Knoppix, which is a very widespread Live CD or for example DSL (Damn Small Linux) which, apart from being damn small can run inside of Windows!
Of course, most major Linux Distributions have LiveCDs nowadays (and possibly some Unixes too), so you can have a look around.

Greetings,
Nepomuk
I agree with Nepomuk, running one of the Live CD distributions will give you the opportunity to play with Linux even without your class giving you access to their system.

My recommendation is to get some drive and go above and beyond your class. Don't limit yourself to what they give you. If you can get Linux running without them, then do it. Why wait for them?

Regards,

Jeff
Feb 7 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Danny Jensen | last post by:
I need to test if certain processes on a unix box were running. I wanted to use whatsup gold to do the testing. First I needed to go to the whatsup configure>monitors & services menu to add this...
5
by: jrefactors | last post by:
when people say unix programmer, does it mean they write programs in unix environment,and those programs are run in unix platform? it is not necessary they are using unix function calls? I heard...
2
by: timdoyle05 | last post by:
Hi, I have a question relating to how Unix commands can be issued from Python programs. Im am currently writing a large test script in python and I need this script to call three other separate...
7
by: kamkwokho | last post by:
Could any answer following questions as many as you can. ii) Write a C shell script convertmin which will read in a number, thought of as representing minutes, and print out the number of...
5
by: Jonay Aloat | last post by:
I know that I can use the news group to post questions. But last time, one of my friend show me that you can do the same thing using a unix command. I don't remember the command, but I know it is...
2
by: frikk | last post by:
Hey everyone, (Sorry about the first message if it made it - i got cut off early). I have a homework problem for my Operating Systems class. I am supposed to use a command such as "ps -aux" and...
9
by: David T. Ashley | last post by:
Thanks for the helpful replies on the other thread. Essentially it was pointed out that a process with the same UID as the ones writing/reading the pipes would be able to examine the memory of the...
21
by: Tom Gur | last post by:
Hi, It's seems that csh and tcsh acts a bit different when handling special characters in quotes. i.e: if i'll supply my program with the following arguments: -winpath "c:\\temp\\" tcsh will...
1
by: Marcin Wiszowaty | last post by:
Hello, I work at a company that has 2 development enviroments. One Unix which i dont know anything about and the othe vs.net 03 with MSSQL server 2000 for db. How can i cause applications...
1
by: kardon33 | last post by:
Let me explain my problem, Im currently trying to use a Perl module that was built for a Windows OS that uses a .dll and .lib file. I have obtained the c header files that the modules were built...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.