9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I know that this basic question has been asked many times and solutions all over the internet, but none of the are working for me. I have a directory in the root directory, named "-p".
# ls -l /
total 198
<snip>
drwxr-xr-x 4 root root 4096 Dec 3 14:18 opt
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: edstevens
2 Replies
2. Shell Programming and Scripting
How to write in awk to remove lines starting with "#" and then process the file:
This is not working:
cat file|awk '{if ($0 ~ /^#/) $0="";print NF>0}'
When I just give cat file|awk '{if ($0 ~ /^#/) $0="";print }'
it prints the blank lines . I don't wnat the blank lines along with the... (15 Replies)
Discussion started by: rveri
15 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to remove all of the empty lines at the end of a Tab delimited file. They have no data just tabs.
I've tried may things, here are a couple:
sed /^\t.\t/d File1 > File2
sed /^\t{44}/d File1 > File2
What am I missing? (9 Replies)
Discussion started by: SirHenry1
9 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have a folder that contains all my music. Recently, I started using a different media player, and I let it manage my music folder. It has sorted all my music neatly in folders by artist and album. However, all the old folders that the songs used to be in are still there, yet they are... (2 Replies)
Discussion started by: emveedee
2 Replies
5. Shell Programming and Scripting
To see if a directory is has anything in it, I do this:
if ; then
# do something
fi
But surely there is a more easy-to-read and elegant way. Isn't there? (6 Replies)
Discussion started by: KenJackson
6 Replies
6. Shell Programming and Scripting
Hi,
I have a file as shown below.
<crown:clinicalData>
<crown:alb date="2008-07-10" lowValue="3.50" method="BCG" value="3.50"/>
<crown:cre date="2008-07-10" value="9.5"></crown:cre>
<crown:ktvHdAd>
</crown:ktvHdAd>
<crown:ktvPdAd>
</crown:ktvPdAd>
... (1 Reply)
Discussion started by: vijayhai
1 Replies
7. UNIX for Dummies Questions & Answers
Hey there!
I try to use 'find' to remove empty directories like this:
find . -depth -type d -empty -exec rm -rf {} ';'
It works just fine, but there are some directories i want to exclude.
So i tried to do sth like this:
find . -depth -type d -empty -exec grep -v "not this one please" -exec... (5 Replies)
Discussion started by: deTTo
5 Replies
8. UNIX for Dummies Questions & Answers
I used to be able to do the following command on HP while largefile was being written to.
> echo " " > largefile
When I try the same on Solaris I get a message that the file already exists.
Is there a parameter that I need to setup in my env ?
Thanks in advance (8 Replies)
Discussion started by: jxh461
8 Replies
9. Programming
I have a file which contains numbers as follows:
1234 9876 6789 5677 3452
9087 4562 1367 2678 7891
I need to remove the empty spaces and add commas between the numbers like:
1234,9876,6789,5677,3452,
9087,4562,1367,2678,7891
Can anyone tell me the command to do... (4 Replies)
Discussion started by: jazz
4 Replies
orphaner(8) orphaner(8)
NAME
orphaner - frontend for deborphan
SYNOPSIS
orphaner [--help|--purge] [deborphan options]
DESCRIPTION
orphaner is a neat frontend for deborphan displaying a list of orphaned packages with dialog or whiptail. Packages may be selected for
removal with apt-get which is then called to do the work. After removal a new list of orphaned packages is gathered from deborphan. The
program ends when either `Cancel' is pressed or no package is marked for removal.
After you removed a package, all new orphaned packages are shown at the top of the list separated by +++++ from the old list.
Orphaner also shows two additional buttons: `Simulate' and `Help'. `Simulate' does like its name suggest only a simulation of removing and
shows the result that would appear after real removing. So you can see the packages, which will become orphaned and you can select them and
remove all packages with one apt-get call.
`Help' shows you the status of the package given by dpkg -s. Caution: your selection will be lost.
OPTIONS
--help Print a short help and exit.
--skip-apt
Do not call apt-get, but show apt-get command line instead.
--purge
Call apt-get remove with the --purge option.
orphaner accepts most, but not all, options that deborphan accepts. These options are passed to deborphan unchanged, and described in
deborphan's manpage. Options which are not accepted include switches to manage the keep file, and switches to change the output format.
Note that switches which take an argument need to passed as one argument to orphaner. For instance to only show packages of priority
optional and less important, you need to use --priority=optional (i.e. with the = sign, not with a space).
SEE ALSO
deborphan(1), orphaner(8), apt-get(8)
April 2004 orphaner(8)