Forum: Shell Scripting Nov 6th, 2007 |
| Replies: 6 Views: 2,249 What shell are you using. If it is bash or csh or somesuch, you need to use backquotes:
echo `expr 2+4`
Hope this helps. |
Forum: Shell Scripting Nov 4th, 2007 |
| Replies: 4 Views: 1,469 Alright. Here you go.
#! /usr/bin/env wish
#
# userbackup.tcl
# Backup a directory as a tar.gz file
#
# Error checking is minimal.
# |
Forum: Shell Scripting Nov 4th, 2007 |
| Replies: 10 Views: 2,064 Hmm, you're right. I was thinking of the = operator in sed, which is just a line count...
I'm quite rusty at this stuff... so give me a little bit to find out what I can... |
Forum: Shell Scripting Nov 4th, 2007 |
| Replies: 10 Views: 2,064 Sed can do it easily. You'll have to get a little familiar with some simple regular expressions.
Here (http://www.grymoire.com/Unix/Sed.html#uh-8)'s a page with all kinds of useful information.
... |
Forum: Shell Scripting Nov 4th, 2007 |
| Replies: 4 Views: 1,469 /me reads first post yet again
Hmm. I don't know why I thought you were using windows.
In any case, this makes it a bit easier. I'll just use Tcl/Tk. Give me a day or two and I'll give you a... |
Forum: Shell Scripting Nov 4th, 2007 |
| Replies: 4 Views: 1,469 Hey there, I've been playing around with a WSH script that could do it for you. However, I need to know, are you using XP? |
Forum: Shell Scripting Oct 26th, 2007 |
| Replies: 3 Views: 1,113 You are going to have a hard time shell scripting if you are unwilling to read about basic commands like for. Rd won't see "*" unless you somehow manage to name a directory "*".
I did also mention... |
Forum: Shell Scripting Oct 26th, 2007 |
| Replies: 3 Views: 1,113 You'll have to enable command extensions and use the for command. Works on XP.
:: change to the proper directory (probably C:\Documents and Settings\)
%SystemDrive%
cd "%ALLUSERSPROFILE%\.."
... |