Search Results

Search: Posts Made By: x-375HK-x
13,222
Posted By x-375HK-x
I looked to awk to solve my problem instead. The...
I looked to awk to solve my problem instead. The following code converts lines 1-4 into lines 5-7, which was the application I need. I'll just post the code here in case it helps anyone.

1....
13,222
Posted By x-375HK-x
Thanks for the reply. (Where's the "duh!"...
Thanks for the reply. (Where's the "duh!" emoticon when I need one?)

There is still a problem, however.

cat datafile.txt | sed "s/\([0-9]*:[0-9]*\)/`min2sec \1`/g"

the shell does now...
13,222
Posted By x-375HK-x
sed - dynamic search and replace
Hi all,

I have a data file formatted as in the following line:

Achadd 0:35 1:35 2:35 3:40 4:40 5:40

I need the minutes converted to seconds; I wrote a script, min2sec, to do...
10,404
Posted By x-375HK-x
Thanks! $! was just what I was looking for,...
Thanks!

$! was just what I was looking for, and I've got it working now.
10,404
Posted By x-375HK-x
ssh connection script
Hi all,

I'm writing a script that chooses the best computer available in an open lab. The script works great except every now and then there is a dead computer in the lab that begins the ssh...
82,491
Posted By x-375HK-x
i have the following function in my .bashrc ( I'm...
i have the following function in my .bashrc ( I'm running solaris)

getip ()
{
/sbin/ifconfig eri0 | awk '/inet/ { print $2 } ' | sed -e s/addr://
}

it prints just my ip
5,813
Posted By x-375HK-x
Thanks for the help! I ran a bash shell and tried...
Thanks for the help! I ran a bash shell and tried it out, but it didn't work. Do you know of any parameters that need to be set? Doesn't the tab complete for cd require enabling in the .cshrc file?
5,813
Posted By x-375HK-x
tab completion using ! history command
Hi all,

I recently discovered the ! command. I think it's great that !cd ? will match the last command that began with cd ?. However, for ! to be particularly useful to me (for now anyway) it...
Showing results 1 to 8 of 8

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