09-22-2009
Delete all line breakes from File doesnt work
Hi,
I have to delete all line breakes but it doenst work.
$ sed -e 's/\\n//g' file.txt
and the output contents still line breakes.
What should I do?
sincerely,
Blackbox
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a utility or command I can use to tell the number of decimal places a number has. For instance, if the number is 432, it will give hundred as the number of decimal places. (7 Replies)
Discussion started by: Heedunk
7 Replies
2. UNIX for Dummies Questions & Answers
hi
when i want to go to previous directory by typing cd.. i get the following message
$ cd..
ksh: cd..: not found
Please help
rintingtong (2 Replies)
Discussion started by: rintingtong
2 Replies
3. HP-UX
Good Day
I mistakely renamed the dld.sl file in the /usr/lib directory. When i try to ls/ftp into the box i get this error :eek:
crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000002
I have tried to rename it back from the renamed file to the original file name, but it gives me the... (2 Replies)
Discussion started by: shawnbishop
2 Replies
4. UNIX for Dummies Questions & Answers
When trying to copy a file in Solaris 8 it doesnt copy file or give a error. This worked 100% until the 29th. I've checked the rights and everything seems fine:
drwxrwxrwx 2 bmuser bmgroup 11776 Jan 3 10:32 spool
This is the file I want to copy:
-rwxrwxrwx 1 bmuser bmgroup ... (26 Replies)
Discussion started by: rudi.okelly
26 Replies
5. Red Hat
Hii All,
I am using openldap v2.3 on redhat El-4. When i run ldapsearch it returns all the entries. The command runs successfully. But when I run the ldapsearch with following filter option it doesnt work and immediately returns to the shell.
ldapsearch uidNumber>=2000
I've started slapd... (0 Replies)
Discussion started by: shamik
0 Replies
6. AIX
Hi all. Could anyone explain me why this simple cron job doesnt work:
% whoami
system
% crontab -l
* * * * * /usr/bin/touch /home/system/foo (3 Replies)
Discussion started by: bsddaemon
3 Replies
7. Shell Programming and Scripting
It just does the break...even though the files are not the same...
# Compare extracts
#==========================================
count=0
while (( count < 5 ))
do
(( count+=1 ))
echo "Try $count"
file1=$(ls -l /tmp/psjava.xml|... (5 Replies)
Discussion started by: sigh2010
5 Replies
8. Shell Programming and Scripting
this is my file I have written.
// My first C++ program
#include <iostream>
int main()
{
std::cout << "Hi there!" << std::endl";
std::cout << "This is my first C++ program" << std::endl";
return(0);
}
This is the error I get, why?
$ g++ first.cpp
ksh: g++: not found (1 Reply)
Discussion started by: gustave
1 Replies
9. AIX
Hi Guys,
I have a strange problem.( AIX 6.1) "vi" is not working at all..Whenever i #vi <anythin> ,, it returns the prompt back. Any clues folks?? (14 Replies)
Discussion started by: muzahed
14 Replies
10. UNIX for Dummies Questions & Answers
I am trying to print out two fields in a file using awk. So, I have got
awk -F '\t' 'NF = 2 {print $1 $2 "]"}' two.txt
in a script called what.awk
When i run this version like this - ./what.awk then it runs however I want to run the program like this
awk -f what.awk two.txt.
When I... (8 Replies)
Discussion started by: The undertaker
8 Replies
LEARN ABOUT DEBIAN
bbtime
BBTIME(1) General Commands Manual BBTIME(1)
NAME
bbtime - Display the time in a small blackbox style window
SYNOPSIS
bbtime [-display <displayname>] [-config <filename>]
[-spooldir] [-version] [-help] [[-position] | [-pos]] <position>
DESCRIPTION
This manual page documents briefly the bbtime command.
bbtime displays the time in a small blackbox style window.
OPTIONS
A summary of options are included below.
-d[isplay] <displayname>
X server to connect to
-c[onfig] <filename>
Alternate config file
-bb[config] <filename>
Alternate Blackbox config file
-def[ault]
Fall back on default configuration
-m[ailbox] <filename>
Filename of mailbox
-v[ersion]
Display version number
-h[elp]
Display this help
-p[osition] <position>
Set position of window, <position> = [+]|[-]x[+]|[-]y
-w[withdrawn]
Place bbtool in the Slit
-s[hape]
Don't display groundplate
CONFIGURATION
Blackbox Users:
By default bbtime reads the Blackbox style-file as defined in .blackboxrc and copies as much of the style as possible. The result is an
application which looks a lot like the toolbar. Further configuration options can be found in bbtime.style. Most likely you want to change
these options, copy this file to somewhere in your homedir (eg blackbox/bbtime.config) and edit it. Edit the file .blackboxrc and add or
edit the line: bbtime.configFile: <your config file>.
WARNING: You have to define the entire PATH.
All style options set by reading the Blackbox-style file can be overridden by placing them in bbtime.config (and changing them). See
bbtime.style for all possible options.
Make sure the file .bbtoolsrc does not exist, else the configuration style for other Window Managers will be used.
Users of other Window managers:
By default bbtime reads the bbtoolsrc and bbtime.nobb config files. If you want to define your personal config-file copy bbtoolsrc to your
homedir as ./.bbtoolsrc. Copy bbtime.nobb somewhere in your homedir. Edit .bbtoolsrc and add or edit the line: bbtime.configFile: <your
config file>.
WARNING: You have to define the entire PATH.
Reconfiguration
Press the right mouse-button on the envelope to cause bbtime to re-read its settings.
FILES
bbtime automatically copies the style of the blackbox toolbar. It copies:
toolbar -> bbtime.frame
toolbar.label -> bbtime.label
toolbar.color -> bbtime.frame.color
toolbar.colorTo -> bbtime.frame.colorTo
toolbar.label.color -> bbtime.label.color
toolbar.label.colorTo -> bbtime.label.colorTo
toolbar.textColor -> bbtime.textColor
bevelWidth -> bbtime.bevelWidth
WARNING: if .bbtoolsrc is defined it won't copy the blackbox style.
For the meaning of the different resources see the comments in the config-files.
SEE ALSO
bbdate(1), bbppp(1)
AUTHOR
This manual page was written by Chris Tillman <tillman@azstarnet.com> for the Debian GNU/Linux system (but may be used by others).
December 29 2001 BBTIME(1)