Search Results

Search: Posts Made By: stumpyuk
4,973
Posted By stumpyuk
grep - match files containing minimum number of pattern matches
I want to search a bunch of files and list only those containing a minimum number of pattern matches. So if I want to identify files containing 3 (or more) instances of the pattern "said:" and I...
Forum: Ubuntu 12-02-2011
1,934
Posted By stumpyuk
I'll try and explain. Machine A has 2 hard...
I'll try and explain. Machine A has 2 hard disks with a total of 4 partitions, I boot machine A with my thumbdrive, the O/S automatically writes an fstab reflecting the partitions on machine A. ...
Forum: Ubuntu 12-01-2011
1,934
Posted By stumpyuk
fstab question
I have created a thumbdrive with a bootable version of Ubuntu 10.04 LTS, it uses Grub legacy.

One of the issues I have is that everytime I boot a new system from the thumbdrive, it writes entries...
2,681
Posted By stumpyuk
Zenity help
Thanks Corona...it works very well
2,681
Posted By stumpyuk
Zenity help
I have a large system housekeeping script, that I want to use with zenity.
One of the processes will be to conduct a virus scan, which I can easily do with something like:

clamscan -rv / |...
Forum: Ubuntu 08-21-2011
1,976
Posted By stumpyuk
Thanks for the replies, so far. The problem...
Thanks for the replies, so far.

The problem isn't manually mounting partitions, the problem is the O/S reading the fstab at boot. I need the system to either stop reading the fstab at boot or...
Forum: Ubuntu 08-21-2011
1,976
Posted By stumpyuk
Ubuntu on bootable thumbdrive
I have created a bootable thumbdrive containing Ubuntu 10.04. It works fine, but has one minor issue. When I boot a system, it writes a new fstab relevant to that system. That fstab persists, so...
3,673
Posted By stumpyuk
Hi radoulov Thanks very much for the help. ...
Hi radoulov

Thanks very much for the help. I have no knowledge of perl, hence I went with bash. Your code was correct based on the information that I gave you.
I noticed some problems with...
3,673
Posted By stumpyuk
awk substitute variable value in nth field
I have a large csv file that looks like this:



The 3rd field is a unix time stamp that I want to convert to human readable.
I wrote a bash script with this code:


IFS=$','
cat $1 | while...
1,028
Posted By stumpyuk
Thanks Scott, that works great, but why don't you...
Thanks Scott, that works great, but why don't you have to escape the closing sqaure bracket? The opening bracket is escaped...so why not the closing square bracket?
1,028
Posted By stumpyuk
sed question
I have a text file that contains ascii text. Each line contains square brackets with text inside. I want to remove the square brackets AND the text inside them. So the lines of text look like...
5,337
Posted By stumpyuk
delete lines in file matching a pattern
I have a text file, a sample of which is as follows:

r/- * 0: WINDOWS/Microsoft.NET/Framework/v2.0.50727/ASP.NETWebAdminFiles/Images/headerGRADIENT_Tall.gif
r/- * 0: ...
3,836
Posted By stumpyuk
Thanks squire! No amount of googling and book...
Thanks squire! No amount of googling and book reading would have lead me to coming up with that solution any time soon.

Thanks again
3,836
Posted By stumpyuk
Thanks for the reply. I was thinking that the...
Thanks for the reply. I was thinking that the file name would stay the same but just increment by [1], [2] etc. So if 3 files called 10.jpg were found on the filesystem, they would be called...
3,836
Posted By stumpyuk
Soft link/file name problem
I want to find graphic files on an external disk then create soft links to those files in a folder on my machine. I have a problem with file names: if there are two graphic files in different...
1,416
Posted By stumpyuk
Help assembling script
I am trying to figure out how to write a bash script to process a file in order to make it more user readable. The file to be processed is quite uniform, every line starts with a 32 bit Unix...
13,483
Posted By stumpyuk
Script to unzip specific files
As part of an audit at work I need to review a lot of Windows workstations. One thing I need to do is review all of the .doc files. My problem is that I guessed a number of these files would be...
12,785
Posted By stumpyuk
It works great...thanks very much!
It works great...thanks very much!
12,785
Posted By stumpyuk
Thanks again, Shell_Life When executed, the...
Thanks again, Shell_Life

When executed, the script prints a number of lines similar to:

New file = /home/usr/photos/00000021_254.jpg

However, when I go to the /home/usr/photos directory,...
12,785
Posted By stumpyuk
Thanks for the reply Shell_Life. It seems that...
Thanks for the reply Shell_Life. It seems that your solution re-names each file in each directory, however, it still creates duplicate file names across directories. For instance, my first...
12,785
Posted By stumpyuk
Bash Script duplicate file names
I am trying to write a housekeeping bash script. Part of it involves searching all of my attached storage media for photographs and moving them into a single directory. The problem occurs when...
Showing results 1 to 21 of 21

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