Search Results

Search: Posts Made By: strike-2
67,809
Posted By strike-2
Tee could help
tee splits your output to a file and stdout.

echo |tee -a fileA |tee -a fileB |tee -b fileC >> fileD
3,571
Posted By strike-2
My guess it you can only ssh to server2 fron...
My guess it you can only ssh to server2 fron server1 due to a rule in the firewall.
You might want to try the forward from server1 to server2 and connecting with tour client to the (forwarded) port...
9,177
Posted By strike-2
Just a silly question: Are you sure you have...
Just a silly question:
Are you sure you have inodes available on /var?
('df -i', depending on your O/S)

If your inode table is full, you may have space on the disk but you can't make a new file...
6,287
Posted By strike-2
Go wash your mouth! (That's the lames joke...
Go wash your mouth!
(That's the lames joke since the easter egg 'Alt-FXFIGHTER' in <program name here>)
4,158
Posted By strike-2
People have a problem and think "I'll user Perl...
People have a problem and think "I'll user Perl to solve this".
Now they have two problems... ;)

Sorry, open door.
(Perl and Logwatch have a special place in my heart)
6
3,766
Posted By strike-2
Have you checked the manpage for your shell? ...
Have you checked the manpage for your shell?

You can split lies with \n but that might require the use of quotes
echo line one \n line two > file

You can also try calling echo 5 times and...
43,678
Posted By strike-2
It might work if you change this line: ( cat...
It might work if you change this line:
( cat <<HERE; uuencode "${ATTFILE}" "${ATTNAME}" ) | sendmail -oi -t
to:
( cat <<HERE; < "${ATTFILE}" ) | sendmail -oi -t

I'm not too sure about the order...
2,638
Posted By strike-2
Different Regex trick -- grouping
You put the \( in the wrong place

Correct version:
echo $thing | sed 's/hat:\([0-9]*[0-9]-[0-9]*[0-9]*\).*/\1/'

You could probably recuce that to:
echo $thing | sed...
Forum: Filesystems, Disks and Memory 05-14-2008
2,873
Posted By strike-2
I am not an AIX admin, but Tar and Dump are...
I am not an AIX admin, but Tar and Dump are reasonably alike across UNIXes.

Tar (the Tape ARchiver) was originally meant for writing multiple files to tape. By specifying a file as an output...
1,636
Posted By strike-2
Your problem is actually rather simple: Because...
Your problem is actually rather simple:
Because you mention '/' right after the 's' command, sed assumes '/' is your delimiter.
Take a look at your like and see if you can spot the number of '/'s....
5,126
Posted By strike-2
I know Perl has ways to re-write the file...
I know Perl has ways to re-write the file in-place, but I'm not too familiar with swapping fields.
Probably something like 's/(.*) (.*)/\2 \1/g'
10,340
Posted By strike-2
You don't need a for loop
I know it's been over a year, but maybe someone else will benefit from this.
If you want to print everything but a number of fields, set them to "" (null)

So, to print everything past $2, type:...
Showing results 1 to 12 of 12

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