Search Results

Showing results 1 to 8 of 8
Search took 0.01 seconds.
Search: Posts Made By: Duoas ; Forum: Shell Scripting and child forums
Forum: Shell Scripting Nov 6th, 2007
Replies: 6
Views: 2,249
Posted By Duoas
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
Posted By Duoas
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
Solved: Replace
Views: 2,064
Posted By Duoas
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
Solved: Replace
Views: 2,064
Posted By Duoas
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
Posted By Duoas
/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
Posted By Duoas
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
Posted By Duoas
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
Posted By Duoas
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%\.."
...
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC