Search Results

Search: Posts Made By: thestevew
5,421
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,760
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,509
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
6,769
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,058
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...
1,754
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. ...
26,657
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,171
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,222
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...
2,952
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,311
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. ...
15,416
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,080
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,437
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,222
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,082
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,303
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,249
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,012
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...
1,915
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:...
17,627
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...
1,915
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,271
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 {}).
11,847
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...
1,906
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 07:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy