[techtalk] filename special characters
Hello, After more than a year, I still consider my self new to Linux. But it always seems to be the little things that trip me up the most. For example, I've only learned recently how to remove filenames with leading dash characters, '-', in their names. Use a dot-slash in front of the name: rm ./-filename But now I have a new problem. I have a group of files with square bracket characters, 'file[2].txt' in their names, and I can't figure out how to search and replace those characters, since the '[]' characters are being interpreted as special characters in the shell. find . -name \*\[ -print find . -regex .*\[.* -print I've tried various combinations of these without success. Any advice on how to get rid of these characters? -- Dennis ___ techtalk mailing list [EMAIL PROTECTED] http://www.linux.org.uk/mailman/listinfo/techtalk
RE: [techtalk] filename special characters
> > > rm "file[2].txt" > will remove the offending file. > kent > > That's true, quoting the filename will let me remove it, but in this case I don't want to remove the file, I want to rename it by removing the '[*]' from the filename. And there are a lot of them in several directories. Verifying that the rename files are unique in thier own folders is a seperate problem that I can solve once I'm able to search and replace the '[]' characters. Thanks, -- Dennis ___ techtalk mailing list [EMAIL PROTECTED] http://www.linux.org.uk/mailman/listinfo/techtalk
Re: [techtalk] filename special characters
ktb wrote: > > > find . -name "*\[*\]*" -print > Doh! Quoting the find expression works. Thanks! -- Dennis ___ techtalk mailing list [EMAIL PROTECTED] http://www.linux.org.uk/mailman/listinfo/techtalk
[techtalk] dynamic xterm titlebar?
Is there some series of commands I can enter at a shell prompt to dynamically change the title bar of an XTerm session? I already know the basics of how to change the titlebar as described in the bash-how-to, and have experimented with various changes in my /etc/bashrc file, including getting the titlebar to dynamically display the last few folder names of my current working directory. But I can't !@#$% I didn't even finish typing and I've already solved my own problem. /etc/bashrc TITLEBAR='\[\033]0;\$(echo \$PROJ)\007\]' PS1="${TITLEBAR}[\u@\h \W]\\$ " now I can export PROJ to any new value at any time and dynamically change my XTerm titlebar. -- d ps - I sent my question (and answer) anyway, more for my own records. ___ techtalk mailing list [EMAIL PROTECTED] http://www.linux.org.uk/mailman/listinfo/techtalk
[techtalk] tracking multiple admin logins?
The company I work for, develops software for Linux servers, and so have a need for various/multiple people to logon as root to various servers that are under development and being tested. Is there way to track who is logging in (as root), in order to better track who is making changes to which config files? -- dennis ___ techtalk mailing list [EMAIL PROTECTED] http://www.linux.org.uk/mailman/listinfo/techtalk
Re: [techtalk] tracking multiple admin logins?
Thanks, this looks like it might work for us. I'll try it out. -- dennis Melissa Plunkett wrote: > > Use sudo, it will create a log entry of who used sudo and what they did. > ___ techtalk mailing list [EMAIL PROTECTED] http://www.linux.org.uk/mailman/listinfo/techtalk
Re: [techtalk] tracking multiple admin logins?
For our purposes, these machines are only being used internally by development and QA teams. Everyone already has root access to them anyway (until I replace it). So we're not concerned with hacking or security issues. I just need to know who's hand to slap with a wooden ruler when they make changes that breaks something else, or forget to check in their code changes into the source control database (we use Perforce, by the way. An excellent tool). I already have a list of IP addresses on my whiteboard, in case they're still logged in, then I know who they are. Sudo looks to be a better solution. Thanks to all, -- d Jen Hamilton wrote: > > Just be careful of what sudo access you give. For example, do not give > sudo access to perl or vi because they can become excellent hacking tools. > > Jen > > On Wed, 4 Apr 2001, Eric R. Turner wrote: > > > On Wed, 4 Apr 2001, Dennis Wheeler wrote: > > > > > > > > The company I work for, develops software for Linux servers, and so have > > > a need for various/multiple people to logon as root to various servers > > > that are under development and being tested. > > > > > > Is there way to track who is logging in (as root), in order to better > > > track who is making changes to which config files? > > > > > > > Use sudo as much as possible! It was designed for the issue you are > > facing, and I believe is fairly standard across unix-like operating > > systems. Also, consider keeping all of your config files in CVS. That way > > not only can you track changes to the config files, but you can also > > revert to any prior version if something gets messed up. It also makes a > > nice centralized repository of your config files if you have multiple > > servers that you want to have the same configuration. > > > > $.02 > > > > Eric R. Turner > > > > -- > > My public OpenPGP key can be found at > > http://www.wwu.edu/~turnere/turnere.asc > > > > > > ___ > > techtalk mailing list > > [EMAIL PROTECTED] > > http://www.linux.org.uk/mailman/listinfo/techtalk > > > > ___ > techtalk mailing list > [EMAIL PROTECTED] > http://www.linux.org.uk/mailman/listinfo/techtalk ___ techtalk mailing list [EMAIL PROTECTED] http://www.linux.org.uk/mailman/listinfo/techtalk
Re: [techtalk] Best programmer's editor for Linux
An IDE (Integrated Development Environment) is like MS Office. One can have separate word processing, spreadsheet. presentation, and e-mail client applications -- but 'office suites' integrate them all together, so you can put spreadsheets in your memos and such. (not trying to sell Office or any other brand of application suite, they all have their strengths and weaknesses) So similarly, an IDE integrates together your editor, debugger and more. Both VI and Emacs and all their numerous clones are all excellent editors, and probably better than you'll find in most IDEs. (especially once you get past each of their quirky keyboard bindings -- because once you learn either of these, you can make them do back-flips at your beckon call). And there are separate debuggers and other development related tools available as well. But there's nothing like being able to step through your source one line or function at a time, examine the contents of your variables the stack, the memory heap, change them (or not), make edits to your source files, recompile, check in/out from source control, and more -- all without having to switch applications (and have to remember what's the correct key combination to press this time). If you're serious about programming, find a well developed IDE. You won't be sorry. Rgardless of your choices, they're only tools to help you get your job done -- if they don't help, don't use 'em. I'm not familiar with JBuilder. -- Dennis Michelle Murrain wrote: > > > > A related question: I've actually never used an IDE - like JBuilder, for > example. Do those of you who program alot find those useful? In what ways? > > Thanks!! > > Michelle > -- ___ techtalk mailing list [EMAIL PROTECTED] http://www.linux.org.uk/mailman/listinfo/techtalk