I'm a n00b in shell scripting,echo "$num $den $file" is the current formatI need 10 right padding for each term above in the above where $num & $den is of %d type, whereas $file is %s type.
I'm trying to create a shell script to take an argument and use it to name a terminal tab. So if the script's name is tabnm, tabnm "test" should rename the current tab "test"
This is my code:
#!/bin/sh echo -ne "e]1;$1a"
but when i run it I get this output:
robin@icarus $ sh tabnm.sh test -ne e]1;test
If I just run echo -ne "e]1;Testa" straight in the shell, the tab is renamed.
Would like to know how to turn "echo" off in a shell scripting. I wrote a shell script, testing a condition, after the condition tested. On the other line I used the echo Command to echo a line, then on the other line I used the "read" command to read an input typed. The crux here is the string or line inputed is what I would like to turn off. Distro is redhat linux.
I have some videos in an mkv container that are 1920 pixels wide, but less than 1080 pixels high. This causes problems when playing the videos on a PS3 (after converting to an AVCHD system), because the PS3 won't centre the video, leaving a very large black bar at the bottom but none at the top. Is there a way to use mencoder or ffmpeg to losslessly add padding to the top and bottom to make the video 1920x1080?
And it worked, terminal 1 printed: "test". But if the pipe is bi-directionnal ( as terminal were echoed back what user was typing), I was expecting to be able to go the other way around:
When I use rar e to extract a rar file, the request for entry of the password always says password will not be echoed. For longer passwords, this is difficult, since a single mistyped key will result in an error.
Does anyone know how I can use the rar command to extract and have the password echoed (appear on the screen as I type it)?
I am trying to echo some value using awk, and for reading the file i am using cat command. If there no space in the file content then the following script result correctly.
console: # cat 1 one;two;three; four;five;six;
[code]....
In case any space is there in the file 1 then i am facing the problem in the output value
I have ubuntu desktop 10.10. I wrote a simple script that I want to execute at system startup. The only problem I have (and one that I've been struggling with for the better part of the day) is that I don't see the outputs of the script during startup.
I was using a line device to record compact cassettes to digital (Linear PCM) then I transferred these files to the computer.Due to cassette print-through, there is audible, albeit weak, pre-echo. This is not caused by the recorder since I can hear them playing the cassettes on a deck.So. Does Audacity have a pre-echo removal function, or can a similar result be obtained by applying different effects? Or any 3rd-party plug-ins?
Here's a strange compiz effect - odd visual echo when you rotate the cube. I kept my /home partition from the Lucid beta testing and compiz seems to have problems with it - looks like I will have to do a complete format and reinstall to solve this. I already purged and reinstalled compiz and anything I could find associated with it. Anyone else suffering from a buggy compiz? The strange thing is - this only occurs 1 out of 10 boots???
I'm trying to use system to call echo and pass variables to it. That was a success. The problem is the variables inside the while-loop i wrote cannot be manipulated. what I'm doing wrong here? here's the code:
I'm running Maverick right now, but the problem also occurs with Lucid. My sound card is a creative X-Fi Titanium (emu20k2). Audio playback is fine, surround is fine, etc. Audio capture is "fine" too - the problem is that the microphone picks up everything that the headset is outputting. This is very strange since the headset is a noice-cancelling headset and in order for that to happen on other platforms (windows) I essentially have to turn the volume up to astronomical levels. As always, this doesn't happen on windows.
Needless to say this poses somewhat of a problem with VoIP applications since folks I'm interacting with constantly hear themselves echoed back by me. The only solution is to tune down the microphone volume but that adds another problem: people can no longer hear me clearly.
So my question is: is there a way to enable echo reduction for Pulse Audio so that the mic doesn't constantly capture what's coming from the outputs? And yes - when I look at the "input" tab in the sound preferences application I can see the marker move if I speak - same with pavucontrol
How can I echo the sound from the microphone to the speakers?
I.e., anything that is picked up by the microphone is played on the speakers immediately, without recording anything. Preferably with the ability to increase the volume.
Do you know if there is anyway to reduce the echo in audio files, by using Cinelerra, Audacity or whatever....Online, I haven't found incoragins answer...hope something better can come up from the forum.
I can play audio in my alsa system and I can record. To keep things simple, I use arecord to record and aplay to play. So far so good. The problem is, I cannot hear what I am recording as I record it. Is there some way to get the input to be echoed to the output? I would optimally like to be able to do this before recording as well as during, so that I can check the levels, find the part to record on the tape, beforehand.
I have tried a test of my card: I had aplay running in one term and arecord running in another. They both ran fine and when I checked the just-recorded file, it was different audio from what I had been playing. This would indicate that the card is able to input and output at the same time, I think? I've done the usual googling as well as reading through URL... and I have done many passes of trial-and-error on my .asoundrc. The more I look at my .asoundrc, the more it looks like it should be doing what I want, but it is not.
My .asoundrc (which again, does works but does not echo audio input): Code: Select all# pros: this allows playback and record. Playback of several # programs at the same time works (their outputs are mixed # together, mono and stereo mixed to stereo) # # cons: input is never echoed!
This works as expected, but I don't see neither the input nor the app output. The application is an interactive prompt written in C. When I interact manually with it, I see the prompt itself and responses to my input, but when I execute the aforementioned script I see nothing. I would like it to print the input and the output as if a real user was typing. Do you know how to achieve that?
I have a process which logs output to log.txt. If I want to see the process's status in real-time, is there a way to echo that output to stdout instead of opening the log in a text editor and constantly reloading?
I'd like a function in my .bashrc file that would allow me to pass text to it and echo the text to a specified file. I know it's simple as "echo 'text' >> file," but ideally, I would want to alias the function so I execute something like:
Code: user~ $ write 'this is a test' with "write" being the function, and 'this is a test' being echoed to the file. I hope I explained that well enough.
I am testing the serial ports on a Single Board Computer(SBC) running Linux kernel 2.6.29. I usually do this by connecting the serial port to another PC serial port, then doing "cat /dev/ttyS0" on PC and "echo hello > /dev/ttyS0" on the SBC. However in the current system, "echo hello > /dev/ttyS0" command does not return at all! Also no characters appear on the destination port. I am running the echo command as root. The system boot messages show that the serial port in indeed /dev/ttyS0.