Search Results

Search: Posts Made By: thestevew
5,777
Posted By thestevew
Lots of things here: the second 'grep' is...
Lots of things here:
the second 'grep' is looking for "OMC OMC LS" - you've got OMC followed by $omc_ident, which is set to "OMC LA" or something similar. Unfortunately, you've enclosed this in...
1,832
Posted By thestevew
Try for file in *.cv do if [ ! -f...
Try

for file in *.cv
do
if [ ! -f $(basename $file .cv).dat ]; then
rm $file
fi
done
2
1,571
Posted By thestevew
both date +%h and date +%b give short...
both
date +%h
and
date +%b
give short month (e.g. Aug)
date +%B
gives the long name (e.g. August)
try "man date" for other options
7,016
Posted By thestevew
If all you just want is a file containing the...
If all you just want is a file containing the differences between your old and new files then try:
diff old_file new_file > diff_file
lines only in new_file will be preceded by >
6,429
Posted By thestevew
You could try one of the vi clones, e.g. elvis...
You could try one of the vi clones, e.g. elvis (see http://sourceforge.net/projects/elvis-dl for docs and downloads), vim, vile or nvi. They're all similar to vi and have extra features, like...
2,024
Posted By thestevew
Perl is a scripting language run by the...
Perl is a scripting language run by the interpreter program - conveniently called 'perl'. So what you were doing was using your shell to run the perl interpreter and tell it which script to run. ...
27,131
Posted By thestevew
To do what you want you would need to embed your...
To do what you want you would need to embed your password in a script in plain text - not good for security! Do you really want to do this? :eek:
4,722
Posted By thestevew
How about this to set length of a variable to...
How about this to set length of a variable to length of input variable and then do the arithmetic
read x
typeset -Z${#x} y
y=$(($x + 1))
print $y

cheers
3,563
Posted By thestevew
dhruva has a good point - some ftps don't support...
dhruva has a good point - some ftps don't support quit to exit.

However, I don't think you've got the point of 'here documents' - they are a wonderful facility; there is no need to create a...
3,242
Posted By thestevew
Four unrelated questions from one user within a...
Four unrelated questions from one user within a couple of minutes - is this homework?
2,576
Posted By thestevew
A few seconds with a search engine would have...
A few seconds with a search engine would have answered this for you! However (on the understanding that this isn't homework),
White box: testing when you know how the code is supposed to work. ...
16,369
Posted By thestevew
TTL is Time To Live for multicast packets and...
TTL is Time To Live for multicast packets and shows how far a packet can be transmitted (from 0 same host, 1 same subnet, 32 same site, 64 same region, 128 same continent, 255 unrestricted)
Do you...
7,240
Posted By thestevew
$ cat x.sh x=$(./x.pl) print Shell script...
$ cat x.sh
x=$(./x.pl)
print Shell script says $x

$ ./x.sh
Shell script says 04-08-2006
2,682
Posted By thestevew
The solutions above will only work if the...
The solutions above will only work if the directory containing the script is in your path - the reason you have to type ./sam.sh is to specify the that the script is in your current working directory...
3,563
Posted By thestevew
For ftp you would do better using a here doc ...
For ftp you would do better using a here doc
ftp -n 147.xxx.xxx.xxx <<EOF
user $USERNAME $PASSWORD
put $SQLOUT /users/$USERNAME/$SQLOUT
quit
EOF
The ftp commands go between <<EOF and EOF. You...
2,263
Posted By thestevew
If you don't have regular backups then I hope you...
If you don't have regular backups then I hope you don't have any valuable data - could prove a lot more expensive than having proper support.
However, I don't see why your find command didn't give...
6,623
Posted By thestevew
Printers are a pain - bring back the quill pen ;)...
Printers are a pain - bring back the quill pen ;)
Need more info to work on, e.g. what flavour of *NIX are you using? is the printer connected to a UNIX (local or remote) or a Windows server?, are...
3,489
Posted By thestevew
Look at http://us2.samba.org/samba/ and prepare...
Look at http://us2.samba.org/samba/ and prepare yourself for hours of frustration and dissapointment before getting it working! good luck :)
4,491
Posted By thestevew
I wouldn't recommend /home, this is really for...
I wouldn't recommend /home, this is really for users' home directories for their private data. I'm with Jim's advice on this one - keep major applications in their own file systems so that they can...
2,098
Posted By thestevew
listing /mnt shows the directory mnt in / $ ls...
listing /mnt shows the directory mnt in /
$ ls -ld /mnt
drwxr-xr-x 2 bin bin 512 16 Apr 2003 /mnt

listing /.mnt looks for a file called .mnt in /
$ ls -ld /.mnt
ls:...
18,139
Posted By thestevew
Printers are more trouble than almost anything...
Printers are more trouble than almost anything else non-MS - bring back the quill pen says I!!!
It's a few years since I did some sco sysadmin but, from what I remember, you need to put the printer...
2,098
Posted By thestevew
In many contexts /. (i.e. the current directory...
In many contexts /. (i.e. the current directory that is the root directory) is the same as / (the root directory) just as ./ (the directory that is the current directory) is the same as . (the...
3,443
Posted By thestevew
To get more debugging in functions add set -x at...
To get more debugging in functions add set -x at the top of the function code (inside the {}).
12,799
Posted By thestevew
Haven't used SCO for about 3 years but on...
Haven't used SCO for about 3 years but on OpenServer 5 I did set up a few users with printer admin permissions. There was a character based gui'ish utility for adding and removing users' permissions...
2,060
Posted By thestevew
On SunOS 5.6 it's in histstore in your home...
On SunOS 5.6 it's in histstore in your home directory (~/histstore) - may be the same for 5.8
Showing results 1 to 25 of 113

 
All times are GMT -4. The time now is 09:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy