06-18-2001
It's good to pick up these sorts of shortcuts to save a lot of time when in a hurry or under pressure - the little things like knowing a flag here and there often make the difference between finding a vital piece of information that can lead to solving a problem.
As with most general issues there are many ways to do things in UNIX - you could have piped tail into the more command to achieve the same effect, variety is the spice of of life!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, just a quick question really on what the <<! at the end of a line actually means ? as you can see i have an oracle startup script that has an sqlplus command. im making a guess here, so correct me if im wrong but the "startup" and "exit" commands that follow are sqlplus command and not unix... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
2. UNIX for Dummies Questions & Answers
how can I add data from command line to end of file? (3 Replies)
Discussion started by: bryan
3 Replies
3. Shell Programming and Scripting
hi,
could anyone tell me the command to append spaces at the end of the line.
for example, i need 1000 spaces after the word "helloworld"
echo "helloworld " i need to achieve this in someother way hardcoding 1000 spaces is not practical.
as i am totally new... (3 Replies)
Discussion started by: kavithacs
3 Replies
4. Programming
hello,
i use this command in my code:
(void) sprintf ( LBuf, "/bin/sed 's/\\//g' %s > %s", tmp1,tmp2);
but i get this error :
sh: syntax error at line 1:'end of file' unexpected
any help please
thank you (1 Reply)
Discussion started by: kamel.seg
1 Replies
5. Shell Programming and Scripting
Hi,
I want to add \n as a EOF at the end of file if it does't exist in a single command. How to do this?
when I use command
echo "1\n" > a.txt
and
od -c a.txt
0000000 1 \n \n
0000003
How does it differentiate \n and eof in this case?
Regards,
Venkat (1 Reply)
Discussion started by: svenkatareddy
1 Replies
6. Shell Programming and Scripting
I am looking to change a data file into a javascript string and this is the code that I am using:
sed -i '' -e 's/^/str += "/' -e 's/$/";/' file.xml
The first part
-e 's/^/str += "/'
works as intended, but the second part
-e 's/$/";/'
adds an additional newline to my file, so that instead of... (3 Replies)
Discussion started by: figaro
3 Replies
7. UNIX for Dummies Questions & Answers
I have text file which is a tab delimited one. Sample data from the file is shown below:
unix is\ great\ os
linux\ is superb
I want to replace that backslash with empty string preserving the tab delimiter. Output should be
unix is great os
linux is ... (3 Replies)
Discussion started by: p.akhilreddy4u
3 Replies
8. Shell Programming and Scripting
Hi ,
Am trying to send mail using the mail command, but the mail command is working but its not sending automatically after pressing .(dot) in the command prompt it sends . How to achieve that. Also it showing the below line after pressing the dot .
/home/abc1/dead.letter... Saved message in... (5 Replies)
Discussion started by: rogerben
5 Replies
9. Shell Programming and Scripting
Oracle Enterprise Linux
We want to track how long a process takes to complete its execution. This is what we want in the schell script
Before the process is started , get the time with date, hours and minutes
execute the process
After the process has ended , get the time with date,... (5 Replies)
Discussion started by: omega3
5 Replies
10. Shell Programming and Scripting
hello Team,
I am looking for sed command or script which will append word at end of line. for example. I want to validate particular filesystem with mount |<filesystem name> command. if nodev parameter is not there then it should add in the fstab file with receptive to the filesystem.
# mount... (8 Replies)
Discussion started by: ghpradeep
8 Replies
LEARN ABOUT DEBIAN
roartips
roartips(7) System Manager's Manual: RoarAuido roartips(7)
NAME
roartips - Tips for RoarAudio users
SYNOPSIS
roard [OPTIONS...] ...
roarclient [OPTIONS...] ...
DESCRIPTION
This manpage lists some tips for intermedia to advanced users of RoarAudio.
CONTROLLING ROARD
RoarAudio supports a lot of things you can change on the fly. This includes the volume for each stream as you may allready noticed: If you
cange the volume within a player only this stream is changed, other streams keep there loudness. There a a lot other things that can be
changed on the fly. To do this there is a tool called roarctl(1). You may want to play around a bit with it. A good start are to try those
two commands:
roarctl --help
roarctl allinfo
The later one will show you all information current available of the server it self, the clients and the streams. This may include a lot of
information.
SERVER ADDRESS
There a serverel types of server addresses based on the protocol used to communicate. This lists the corrently implemented types in order
of importance:
/path/to/sock
Path to UNIX Domain Socket. Example:
/tmp/roar
host, host:port
This is used for connections over TCP/IP. If port is omitted the default port is used. Examples:
audio.homeserver.local
localhost:7564
node::, node::object, ::object, ::
This is the way to specify a DECnet connection to node node's object object. Both may be omitted to use defaults. Default node name
is local hosts node name. Examples:
mynode::
::roar
yournode::yourroard
+fork This starts a new roard for every roar_connect(3). This is used internaly by the lib to emulate EsounD's fallback.
ENVIRONMENT
ROAR_SERVER
This varibale contains the default server address. If some client does not allow a user to set a server address or to set a default
value this one come into play. Examples:
ROAR_SERVER=some.host
ROAR_SERVER=another.host:port
ROAR_SERVER=node::
ROAR_SERVER=/tmp/roar
SEE ALSO
roarcat(1), roarctl(1), roarfilt(1), roarfish(1), roarmon(1), roarvorbis(1), roard(1), libroar(7).
RoarAudio August 2008 roartips(7)