dos/intel unix command equivalent

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions dos/intel unix command equivalent
# 1  
dos/intel unix command equivalent

In Unix I can use command line to do a find for files older than so many days and remove them. I can also capture the date to see if its a saturday and do something different. Are there any dos/intel command line equivalent commands to do this on a windows 2003 server? This is from an application admin perspective, I do not have admin rights on the server.
# 2  
in Powershell - supported by Windows 2003 server you can try things like this:
get-childitem –recurse | where-object {$_.lastwritetime -gt “8/13/2009”}

To find our all the files in the target directory modified in the last 30 days:

$DtToCompare = (Get-date).AddDays(-30)

Get-Childitem –recurse | where-object {$_.lastwritetime –gt $DtToCompare}

# 3  
Thanks! I will also go find more information on powershell.
# 4  
You could also try Microsoft SFU (services for unix) which is the C-Shell and Korn Shell, and most of the basic unix utilities.
# 5  
Just a FYI, I read that power shell is now standard install on all Win 7 versions. I guess MS is going to make this part of the OS so it may be a good idea to learn it.
# 6  
I installed cygwin so that I have the find command on my servers and my (shame) Windows desktop. Hey, they tell me at work I have to use Windows but I can make it as much like Unix as I can. I've always used WinVi as my editor of choice too. Smilie

---------- Post updated at 12:57 PM ---------- Previous update was at 08:19 AM ----------

I apologize. I took the time to look and I actually am using WinVi and the UnixUtils from SourceForge and NOT Cygwin. Just wanted to clear that up lest I confuse anyone.
# 7  
Before giving in and installing Cygwin (for the third time in as many years, it seems), I had the GnuWin32 (is that MinGW? Not sure.) tools, along with someone's Win32 build of the bash shell that seemed ok. cp and mv and the like were argumentative most of the time -- i.e.: they didn't move files between folders whether shared, unshared, read-only or read-write, but copying inside your current working directory was fine.

Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #942
Difficulty: Medium
The underlying Data Link Layer never poses limits to the maximum frame size.
True or False?

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

DOS Equivalent of UNIX Command

Hi, The title of this post is a little vague but I couldn't think of what to call it. In Unix you can perform the following command ftp -v IPADDRESS <<END put FILE END In a DOS command prompt, is it possible to do the same kind of thing that the "<<END" does? So for example, ... (4 Replies)
Discussion started by: Ste_Moore01
4 Replies

2. Shell Programming and Scripting

PHP Equivalent of the unix command

Hi Can any one please let me know which will be the PHP equivalent of the below Unix statement, curl -H "Content-type: application/json" -H "Accept: application/json" --data-binary '{"text" : "how to check the temperature?"}' -H "X-JaskUid:111" -X POST ""'Thanks in advance!! ... (0 Replies)
Discussion started by: vidhyaS
0 Replies

3. Shell Programming and Scripting

Command for unix to dos conversion

Dear All Could you please advice how do we convert a unix file to dos I know one command,ux2dos, which somehow does not work to give desired output Inputs on this is appreciated Thanks, Suresh (3 Replies)
Discussion started by: sureshg_sampat
3 Replies

4. Shell Programming and Scripting

Windows command shell equivalent in Unix

In Windows we use cmd.exe \c as the command SHell What is its equivalent in UNIX ? Thanx for all your help. (10 Replies)
Discussion started by: simonsimon
10 Replies

5. Windows & DOS: Issues & Discussions

what is the DOS equivalent of alias command?

how do we create aliases to commands in dos? thanks (9 Replies)
Discussion started by: milhan
9 Replies

6. UNIX for Dummies Questions & Answers

Unix equivalent of DOS set

Hi all, what is the equivalent command of the DOS set that lists all the environment variable and their values? Xavier. (3 Replies)
Discussion started by: xxavier
3 Replies

7. UNIX for Advanced & Expert Users

Equivalent command for setlocal in Unix

Hi all, Is there any command in unix equivalent to setlocal in windows. setlocal command is really useful in restoring local environment variables in windows. Thanks, Sonal. (7 Replies)
Discussion started by: sonaluphale
7 Replies

8. UNIX for Advanced & Expert Users

Command equivalent to DOS mode for SCO 5.0.6

I need to set the serial port attributes to 9600,7,E,1 in order to read and write data to it from within a Foxpro program. Unfortunately there is no function in Foxpro to set the line attributes, only open. close read and write. Stty only works on the stdout and stdin in this release, and the... (3 Replies)
Discussion started by: jgt
3 Replies

9. Windows & DOS: Issues & Discussions

SQL Spool equivalent command in DOS

This question maybe in the wrong category but I'm posting here due to urgency. In DOS is there a command to perform a similar function to spool command in SQL or Script command in UNIX? I want to print all command line output to a file but I don't want to use the echo command for each line. ... (2 Replies)
Discussion started by: stevefox
2 Replies

10. UNIX for Dummies Questions & Answers

Question about DOS versus Unix Command?

Okay here is a DOS comparison. When I search for a file in DOS and I was not sure what directory it was in then I would put dir /s/o/p filename the s would tell it to look in every directory including subs, the o would sort it alphabetically and the p would limit the display to one page at a... (1 Reply)
Discussion started by: wmosley2
1 Replies

Featured Tech Videos