11-10-2010
1) Stop editing your scripts in Notepad. Create them inside the shell with an editor like nano or vim.
2) tr -d '\r' < oldscript > newscript
3) To delete a dir with a weird name, something like find ./ -iname 'lol*' -type d -exec rmdir '{}' ';'
3 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everybody
I m looking the put the result of a commande to a Variable
i explain
here is my command:
cat sortie | grep "^"| awk '{ print $1}'
15
sortie is a text file
I want to put the result of command in a variable X
and the end i would like
echo $X
15 (3 Replies)
Discussion started by: kykyboss
3 Replies
2. AIX
Hello !
I use mailx to send emails.
I use it like that
mailx -s $titleMail $mailAdr < BODY_MAIL.txt
The problem , is if i have some spaces in the variable titleMail it is
considered by the command mailx like other mail adress to send the mail.
Anyone would have a suggestion... (1 Reply)
Discussion started by: comboDev
1 Replies
3. Shell Programming and Scripting
Hello,
I want to know how i can sum two numbers in a grep command with the parameter -n.
this code return line number and the line who have the "pattern" :
*\).*/\1/p')
]
but now i want to suw *\).*/\1/p')] with 1 to have the next line:
*\).*/\1/p')] + 1 : it can't work.
Thanks you (4 Replies)
Discussion started by: samara80
4 Replies
EVIM(1) General Commands Manual EVIM(1)
NAME
evim - easy Vim, edit a file with Vim and setup for modeless editing
SYNOPSIS
evim [options] [file ..]
eview
DESCRIPTION
eVim starts Vim and sets options to make it behave like a modeless editor. This is still Vim but used as a point-and-click editor. This
feels a lot like using Notepad on MS-Windows. eVim will always run in the GUI, to enable the use of menus and toolbar.
Only to be used for people who really can't work with Vim in the normal way. Editing will be much less efficient.
eview is the same, but starts in read-only mode. It works just like evim -R.
See vim(1) for details about Vim, options, etc.
The 'insertmode' option is set to be able to type text directly.
Mappings are setup to make Copy and Paste work with the MS-Windows keys. CTRL-X cuts text, CTRL-C copies text and CTRL-V pastes text. Use
CTRL-Q to obtain the original meaning of CTRL-V.
OPTIONS
See vim(1).
FILES
/usr/local/lib/vim/evim.vim
The script loaded to initialize eVim.
AKA
Also Known As "Vim for gumbies". When using evim you are expected to take a handkerchief, make a knot in each corner and wear it on your
head.
SEE ALSO
vim(1)
AUTHOR
Most of Vim was made by Bram Moolenaar, with a lot of help from others. See the Help/Credits menu.
2002 February 16 EVIM(1)