Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: Bashingaway
1,505
Posted By Bashingaway
Carlo I don't think you've taken fully...
Carlo

I don't think you've taken fully onboard what I'm trying to do....

I'm search for the Text Phrase "Service ID:" AND then the $VARIABLEx value (not Service ID=value).

Service ID:...
1,505
Posted By Bashingaway
This is almost there, but how do I do it if the...
This is almost there, but how do I do it if the Service ID values are variables? and I want to extract multiple lines in a single awk statement, would the following work?

awk -vRS="-------"...
1,505
Posted By Bashingaway
Blocks of text in a file - extract when matches...
I sat down yesterday to write this script and have just realised that my methodology is broken........

In essense I have.....
...
10,248
Posted By Bashingaway
Excepting LVM is more about volume management and...
Excepting LVM is more about volume management and less about resilience, LVM does not AFAIK have the tools to setup a RAID5 or RAID6 environment. Instead you'd have to build LVM on top of RAID which...
10,248
Posted By Bashingaway
I'd already tried with the --force option....no...
I'd already tried with the --force option....no go I'm afraid.

I should get the replacement disks today so will be physically pulling the drive and crossing my fingers.
10,248
Posted By Bashingaway
According to what I've read elsewhere you should...
According to what I've read elsewhere you should be able to.....

mdadm --stop /dev/thatarray

mdadm --fail /dev/thatdrive

and then the drive should no longer show as in the array.....well...
10,248
Posted By Bashingaway
mdadm unable to fail a resyncing drive?
Hi All

I have a RAID 5 array consisting of 4 drives that had a partial drive failure in one of the drives.

Rebooting shows the faulty drive as background rebuilding and mdadm /dev/ARRAYID shows...
Forum: Linux 07-13-2011
9,108
Posted By Bashingaway
OK This took a while for me to get right but........
OK This took a while for me to get right but.....

Firstly you have to install wmctrl

I then hacked together a script based on some stuff I found online and called it compizwmctrl.

...
2,328
Posted By Bashingaway
Alister Thanks for this worked great,...
Alister

Thanks for this worked great, reduced the processing time from hours to minutes!!
2,328
Posted By Bashingaway
Thanks for this but I'm not sure it'll work for...
Thanks for this but I'm not sure it'll work for me. My original example is the problem, sorry.

When you strip the pathname on the first line it therefore removes where to get the file that I want...
2,328
Posted By Bashingaway
Fastest way to delete duplicates from a large filelist.....
OK

I have two filelists......

The first is formatted like this....

/path/to/the/actual/file/location/filename.jpg

and has up to a million records

The second list shows filename.jpg...
2,392
Posted By Bashingaway
Likely charset issue with tree command?
Hi All

I'm using a tree command in a script that for me outputs:-



| - - DIRECTORYNAME



However a different user is getting the following output:-



aaa (actually with an...
2,013
Posted By Bashingaway
Thanks Scott Could you explain how that's...
Thanks Scott

Could you explain how that's working possibly.
2,013
Posted By Bashingaway
Using sed can you specify the last instance of a character on a line?
I was told a way to do this with awk earlier today but is there a way with sed to specify the last instance of a character on a line?

You will know what character you're looking for but there...
2,113
Posted By Bashingaway
Jay Just wanted a further follow up to thank...
Jay

Just wanted a further follow up to thank you for this.

I was using basename a couple of other places in the script and replacing with this is going to strip about an hour off the script...
2,113
Posted By Bashingaway
Thanks, what's the $NF variable? I don't think...
Thanks, what's the $NF variable? I don't think I've ever used it before.

edit
Ignore, I've just seen it's the number of fields and therefore by definition the last field, nice idea, thanks.
2,113
Posted By Bashingaway
Sorting a list of filenames but keeping the path information.
Hi All

I've googled around for this and can't see a way of doing it.

I have a file that contains a number of records that are layed out something like the following.
...
1,890
Posted By Bashingaway
Does uniq -d only check for consecutive matches?
Hi All

I have a rather large text file of approx 1m records in the format:-

20110877837-2.PDF
20100298984-3.PDF

et al...

I want to run uniq against the file to make sure there are no...
Forum: Linux 02-11-2011
15,225
Posted By Bashingaway
I managed to get it all working by pulling the...
I managed to get it all working by pulling the data from /var/log/messages.

Even though my version of chat is supposed to support REPORT I couldn't get it working properly and there's little if...
Forum: Linux 02-10-2011
15,225
Posted By Bashingaway
Corona688 Thanks for the ideas but I'm...
Corona688

Thanks for the ideas but I'm afraid the way you're suggesting doesn't work, not because of your code but instead the 'inconsistency' of the way the modem(s) outputs the data. Some...
Forum: Linux 02-08-2011
15,225
Posted By Bashingaway
The version I'm using is supposed to support the...
The version I'm using is supposed to support the REPORT file, however I'll be darned if I can get it to work.....

If I could find any working examples I could at least try to see if my syntax is...
Forum: Linux 02-07-2011
15,225
Posted By Bashingaway
How do I capture responses from the chat command?
Unfortunately googling the word 'chat' gives you zebedee billion responses that relate to everything and few of them refer to the linux chat command. I've read the man page and found a couple of...
Forum: Linux 02-02-2011
9,108
Posted By Bashingaway
How to open a gnome-terminal in specific workspace and run script within it automatically upon login
OK this is a bit messy.

I run Fedora with gnome on a compiz desktop, I have a script (userstart) that opens my 'standard' environment for all my machines when I login. userstart flips to a...
4,158
Posted By Bashingaway
I was afraid that was the case...... Since I...
I was afraid that was the case......

Since I posted the original question I came across this thread which suggests SMB shares will traverse boundries.

Mounting NFS of a symbolic link - Ubuntu...
4,158
Posted By Bashingaway
The mounts go to the directories in fstab... ...
The mounts go to the directories in fstab...

for example:-


192.168.1.159:/mnt/RAIDARRAY1/directory1 /mnt/directory1 nfs defaults 0 0
192.168.1.159:/mnt/RAIDARRAY1/directory2 ...
Showing results 1 to 25 of 63

 

Featured Tech Videos

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