Search Results

Search: Posts Made By: quantumechanix
27,342
Posted By quantumechanix
Sorry if it came across as accusatory, that was...
Sorry if it came across as accusatory, that was definitely not my intent. I was merely asking whether the commands worked on your systems, because I thought it interesting that the same commands that...
27,342
Posted By quantumechanix
I'm using bash on Linux (Fedora Core 2), but it...
I'm using bash on Linux (Fedora Core 2), but it also happens on Sun Solaris 8 with the tcsh shell.
27,342
Posted By quantumechanix
going into and exiting vi doesn't work for me....
going into and exiting vi doesn't work for me. Neither does "tput reset", "reset", or "tset"

Do these commands actually work for you guys?

I found this bizarre solution somewhere on the net,...
27,342
Posted By quantumechanix
xrefresh is a no-go, but it does make the screen...
xrefresh is a no-go, but it does make the screen flash for a nanosecond :)
27,342
Posted By quantumechanix
cat binary file -> terminal gibberish
I've used *nix systems for some time now and have frequently seen a terminal turn to gibberish after using cat or more on a binary file. I'm sure many others have also noticed this. Normally, I just...
5,737
Posted By quantumechanix
excellent, the solution in your edit works great ...
excellent, the solution in your edit works great

thanks OP
5,737
Posted By quantumechanix
can arrays be used in regular expressions?
anyone know if there is a way to use an array in a regular expression. suppose i want to find out if $sometext contains one of an array's elements. Obviously the code below doesn't work, but is there...
8,601
Posted By quantumechanix
thanks. it really was frustrating. but, at least...
thanks. it really was frustrating. but, at least i learned something. i got it all working now.

scott
8,601
Posted By quantumechanix
now, this is bizarre!!! have i gone insane or is...
now, this is bizarre!!! have i gone insane or is 32.2-29.2 not equal to 3.0????

code:
################################
#! /usr/local/bin/perl -w

$slice_thickness = 3.0;

if (31.2-28.2 ==...
8,601
Posted By quantumechanix
here is my output: 1 => Current: 101.2 ...
here is my output:

1 => Current: 101.2 Last: 101.2 Last - Current: 0 Slice Thickness: 3
1 => Current: 98.2 Last: 101.2 Last - Current: 3 Slice Thickness: 3
1 =>...
8,601
Posted By quantumechanix
Perl - Iterating a hash through a foreach loop - unexpected results
i've reworked some code from an earlier post, and it isn't working as expected

i've simplified it to try and find the problem. i spent hours trying to figure out what is wrong, eventually thinking...
3,664
Posted By quantumechanix
my solution
#! /usr/local/bin/perl -w

@array = (qw /-20 -17 -14 -11 -8 -5 -2 -6 -3 0 3 6 9 12 15 18/);
# i want 18 15 12 9 6 3 0 -2 -5 -8 -11 -14 -17 -20
# because i can't have intervals greater than 3
#...
3,664
Posted By quantumechanix
Perl: sorting files by whats in'em
i'm halfway into my script and realize i may need to use an associative array (a hash, i guess they are called in Perl). i'm fairly new to Perl and don't know how to use them correctly.

i have...
2,025
Posted By quantumechanix
Displaying what a command is doing/has done
I would like to see what a command is doing. For example, say I move 10 files using mv * somedir. Can I use some other command to see a verification of each files movement. Like:

file1 moved to...
7,499
Posted By quantumechanix
you people rock! i think both ways work, but i...
you people rock! i think both ways work, but i used criglerj's way with the heads-up about removing the asterisks. man, you guys have saved me untold amounts of time. i have spent the past week and a...
7,499
Posted By quantumechanix
oombera: i couldn't get that to work. i played...
oombera:
i couldn't get that to work. i played with it for a while with different results. i'm not sure of the use of:
mv $i `dirname $i`'/xyz'

i did this:
................
for i in `find ....
7,499
Posted By quantumechanix
i tried the following: ............. ...
i tried the following:

.............
#!/bin/ksh
for i in `ls`; do
if [ -d $i ]; then
echo $i | grep -q "*/*/*DUAL*
if [ $? -eq 0 ]; then
mv $i fse
fi
fi
done
..............
...
7,499
Posted By quantumechanix
all the dirs are "forked" off from each other....
all the dirs are "forked" off from each other. there are no directories that contain more than one directory with the same pattern (i hope that makes sense). i understand your point, and i hadn't...
7,499
Posted By quantumechanix
Rename files/directories based on their name
i have hundreds of directories that have to be renamed. the directory structure is fairly uniform which makes the scripting a little simpler.

suppose i have many directories like this */*/*/*abc*...
Showing results 1 to 19 of 19

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