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
DPKG-PRECONFIGURE(8) Debconf DPKG-PRECONFIGURE(8)
NAME
dpkg-preconfigure - let packages ask questions prior to their installation
SYNOPSIS
dpkg-preconfigure [options] package.deb
dpkg-preconfigure --apt
DESCRIPTION
dpkg-preconfigure lets packages ask questions before they are installed. It operates on a set of debian packages, and all packages that
use debconf will have their config script run so they can examine the system and ask questions.
OPTIONS
-ftype, --frontend=type
Select the frontend to use.
-pvalue, --priority=value
Set the lowest priority of questions you are interested in. Any questions with a priority below the selected priority will be ignored
and their default answers will be used.
--terse
Enables terse output mode. This affects only some frontends.
--apt
Run in apt mode. It will expect to read a set of package filenames from stdin, rather than getting them as parameters. Typically this
is used to make apt run dpkg-preconfigure on all packages before they are installed. To do this, add something like this to
/etc/apt/apt.conf:
// Pre-configure all packages before
// they are installed.
DPkg::Pre-Install-Pkgs {
"dpkg-preconfigure --apt --priority=low";
};
-h, --help
Display usage help.
SEE ALSO
debconf(7)
AUTHOR
Joey Hess <joeyh@debian.org>
2018-02-28 DPKG-PRECONFIGURE(8)