Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: sentinel
Forum: OS X (Apple) 01-29-2011
2,390
Posted By sentinel
[Solved] upgraded to OSX 10.6.6 - cannot sudo
I've been using "sudo" inside Terminal. I just upgraded to 10.6.6 and now "sudo" gives me incorrect password errors.

My user is an admin user, so i can install etc on GUI but unable to do anything...
Forum: OS X (Apple) 01-28-2011
3,058
Posted By sentinel
please create such a directory. cd mkdir...
please create such a directory.

cd
mkdir .vim
Forum: OS X (Apple) 01-28-2011
3,058
Posted By sentinel
I take it you are launching vim from the...
I take it you are launching vim from the Terminal. This would be launching the /usr/bin/vim executable not macvim.

Please copy the plugin into your local user inside ".vim/plugin" (there is a dot...
2,592
Posted By sentinel
GNU screen: shortcut to go to tab 10,11 etc
Using GNU-Screen for a long time.

C-a 1 2 n p to navigate to other tabs. This works till 9. I often have 10, 11 etc. Is there any way to go to them quickly ?

Currently, i have to do C-a 9, C-a...
1,890
Posted By sentinel
Perhaps, my key combinations could map to a...
Perhaps, my key combinations could map to a function in vim, that checks the filetype at runtime and then executes the code. Haven't done any plugin writing, but I guess I could try this out a little...
1,890
Posted By sentinel
Vim: different mappings for different window
My .vimrc file has filetype mappings for different filetypes such as :

autocmd FileType sh map gf ...
autocmd FileType ruby map gf ...

While rewriting a program from one language to another, I...
5,031
Posted By sentinel
ffmpeg: capture audio that's playing (command line)
I'd like to capture the audio playing in itunes (OSX) to a file (from the command line).

I currently use Wiretap Pro, but i'd like a non-gui. I tried installing sox, but after installing about...
3,884
Posted By sentinel
GNU Screen - viewing hardcopy (binary)
I generate a hardcopy (C-a h) of an ncurses screen which has some formatting on it (boxes, highlights).

If I "cat" the file, i get only text.
If I do a cat hardcopy.n | less , then i see a lot of...
149,651
Posted By sentinel
tlarkin, was not intending to put you off! ...
tlarkin,
was not intending to put you off!
Going back to your original question: "advantage" really depends on what you are trying to do. e.g., If you were writing shell scripts for personal use,...
149,651
Posted By sentinel
There are a lot of articles about zsh being...
There are a lot of articles about zsh being superior (completions, expansions etc). (see (http://zsh.sourceforge.net/Doc/Release/zsh_13.html))

I believe bash has caught up with ksh93 in some...
34,473
Posted By sentinel
Why do the last 2 print junk on my terminal. ...
Why do the last 2 print junk on my terminal.


$ echo -e "\xC3\xBE\x02"

$ echo -e $'\xFE'

$ printf '\376'


I'm on: GNU bash, version 4.0.35(1)-release (powerpc-apple-darwin9.8.0)
...
34,473
Posted By sentinel
Printing special character in bash
I am using this character as a delimiter ''
Currently, I set it straight:
DELIMITER=''

However, while copying the file, this character often gets mangled. Is there a bash way (perhaps using tr...
2,357
Posted By sentinel
Thanks a lot, and much thanks for the awk script,...
Thanks a lot, and much thanks for the awk script, Ygor.

I was also thinking along these lines in my sleep ;-)

1. First color the entire line.
2. Use the line color, as the OFF color for other...
2,357
Posted By sentinel
Nope, i am not looking for a hard coded solution....
Nope, i am not looking for a hard coded solution.
You are missing the part there are red portions throughout the line.

My code is like:

items = @( echo "$items" \
| sed...
2,357
Posted By sentinel
Complex coloring in script
My script prints lines in which the entire line may be colored, and portions may also be colored. e.g.

Consider this to be one line:

$red some text in red $yellow abcd $end_yellow red text...
10,438
Posted By sentinel
Thanks jgt. That has occured to me as a last...
Thanks jgt.
That has occured to me as a last resort.
I am still hoping for an in-line answer. Until then I'll use this one.
10,438
Posted By sentinel
starting bash in a directory
I wish to start bash in a directory at a per invocation basis. i.e, this has nothing to do with a user's home directory.

In my program, I should be able to give: "bash "/lib/examples" in one place...
Forum: What is on Your Mind? 08-28-2009
16,342
Posted By sentinel
There is a wide variety within Indian food. ...
There is a wide variety within Indian food.
Love north indian (delhi, punjabi) food. Also love idlis and sambar (south).
Forum: OS X (Apple) 12-27-2008
5,291
Posted By sentinel
Video grab using ffmpeg?
Does anyone know how to grab video (screen) on Terminal using ffmpeg (not X11).

I have written a unix library and I'd like to make a short movie (demo) of it.

Tried: I already own SNapz Pro2...
1,536
Posted By sentinel
Yes, that's why I usually prefer using perl or...
Yes, that's why I usually prefer using perl or ruby on the command line.

e.g.
ruby -ne 'if /^<i>(.*?):/ then puts $1; end'

Once you are used to perls or ruby's regexs, you can get stuck on...
4,579
Posted By sentinel
How can I change the prompt that GNU screen...
How can I change the prompt that GNU screen displays in .screenrc.

I've tried setenv PS1='\w: ' and
export PS1='\w: '
but it does not show up when the screen open.

man screen does give some...
Forum: OS X (Apple) 09-26-2008
6,725
Posted By sentinel
i use ffmpeg a lot. Just do "sudo port install...
i use ffmpeg a lot. Just do "sudo port install ffmpeg" (assuming you use macports).



(it understands from the extension of your second file that you want an mpg and does the job)
149,651
Posted By sentinel
btw, I started using screen a few days back and i...
btw, I started using screen a few days back and i love it. Could you please give me the exact setting for HISTFILE you use, and how you merge the histories. Is it just a simple cronjob that does a...
149,651
Posted By sentinel
I use and like bash. However, strangely (I...
I use and like bash.

However, strangely (I use several terminal windows), i have never figured out where the history of each window goes. I am certain that bash does not *save* command history per...
4,687
Posted By sentinel
AAH ! Tried that and it worked. I checked 'man...
AAH ! Tried that and it worked. I checked 'man mpack' and it confirmed the dependence on TMPDIR which defaults to /usr/tmp. I do not have such a directory.

So in my script i just put...
Showing results 1 to 25 of 39

 

Featured Tech Videos

All times are GMT -4. The time now is 04:27 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy