02-07-2011
When I do the wildcard it picks up the files with the extensions. I was looking at things like '/\./' but I am a true newbee and couldn't get that to work...also playing with the grep but no luck.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem.
so i need to use find command (6 Replies)
Discussion started by: amirthraj_12
6 Replies
2. Shell Programming and Scripting
Hello
I have created the following script, which is designed to manipulate a text document:
#!/bin/sh
# Get 3 lines, (last of which is "Quantity"); adjust order; put all three on one line with tabs.
FILENAME=~/Desktop/email.txt
LIST=$(grep -B2 "Quantity" ${FILENAME} |awk 'BEGIN { FS = "\n"; RS... (6 Replies)
Discussion started by: benwiggy
6 Replies
3. UNIX for Advanced & Expert Users
I was reading these 2 articles. Why does the wikia one think :e ++ff=dos? Or am I just misunderstanding it?
:e ++ff=unix
:e ++ff=dos
File format - Vim Tips Wiki
Managing/Munging Line-Endings with Vi/Vim | Jeet Sukumaran (1 Reply)
Discussion started by: cokedude
1 Replies
4. UNIX for Advanced & Expert Users
When you are dealing with ASCII files it easy to check on line endings type. You can just use the file command. You are not always lucky enough to be dealing with ASCII files. So in the cases that you don't have ASCII files how can you check what type of line endings you have? Please list all... (5 Replies)
Discussion started by: cokedude
5 Replies
5. UNIX for Advanced & Expert Users
I was reading this and thought I could put this in my vimrc and it would convert the line endings to unix. Am I doing something wrong or am I missing something?
set ff=unixManaging/Munging Line-Endings with Vi/Vim | Jeet Sukumaran
I used this command and it confirms that my global option is... (2 Replies)
Discussion started by: cokedude
2 Replies
6. Shell Programming and Scripting
find . -type fl
o/p is only the ordinary file. where in it wont give the link files. (2 Replies)
Discussion started by: nikhil jain
2 Replies
7. Shell Programming and Scripting
I need assistance with following requirement, I am new to Unix.
I want to do the following task but stuck with file creation date(sysdate)
Following is the requirement
I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Discussion started by: PreetArul
4 Replies
8. Shell Programming and Scripting
Mails from Sendmail are ignoring line endings, when I try to send email with attachment. I have tried to specify the font in the html but line endings are still ignored. I also tried unix2dos, still no luck.
#!/usr/bin/ksh
###Send Email
MAILTO=`cat mail2.list | tr -s '\n' ','`
SUBJECT="bla bla... (3 Replies)
Discussion started by: aydj
3 Replies
9. UNIX for Beginners Questions & Answers
Hi,
At the moment, using Notepad++ to do a search and replace, manually section by section which is real painful. Yeah, so copying each section of the line of text and putting into a file and then search and replace, need at least 3-operations in Notepad++.
Here's hoping I will be able to... (1 Reply)
Discussion started by: newbie_01
1 Replies
LEARN ABOUT DEBIAN
diakonos
diakonos(1) diakonos diakonos(1)
NAME
diakonos - a customizable, usable console-based text editor
SYNOPSIS
diakonos [files]
Basic Commands
Following are some of the most common commands and their default key bindings. Not all commands are listed here. For a comprehensive list-
ing, see the configuration file.
Movement
Arrow keys Cursor movement
Home, End
Move cursor to beginning or end of current line
Page Up, Page Down
Pitch buffer view by one screenful of text
Alt-Up, Alt-Down
Scroll up, down
Editor Control
Ctrl-Q Quit
F1 List key bindings
F12 Edit user's configuration file
Alt-M Start/stop macro recording
F4 Play macro
F6 Repeat last command
File/Buffer Control
Ctrl-O Open a file
Ctrl-S Save current buffer
Alt-S Save current buffer to specific filename
Ctrl-W Close current buffer
Ctrl-N Create new empty buffer
Alt-Shift-T
Specify buffer content type
Alt-1 to Alt-9
Switch among first 9 buffers
Alt-minus, Alt-=
Switch buffers
Ctrl-Z Undo
Ctrl-Y Redo
Clipboard
Ctrl-space Anchor selection (like emacs)
Ctrl-C Copy selection to clipboard
Ctrl-X Copy selection to clipboard and delete (i.e. cut)
Ctrl-V Paste clipboard text
Alt-U Unselect (stop selecting)
Ctrl-K Cut current line (can collect multiple lines)
Searching
Ctrl-F Find
Ctrl-Alt-F
Find upwards
F3 Find again
Shift-F3
Find again upwards
Ctrl-R Search and replace
Ctrl-Alt-U
Clear match highlight
FURTHER INFORMATION
For more information on Diakonos see: http://purepistos.net/diakonos/
http://wiki.purepistos.net/doku.php?id=Diakonos:Getting-Started
http://wiki.purepistos.net/doku.php?id=Diakonos:Tips-and-Tricks
AUTHOR
Diakonos is by Pistos Christou
This package is maintained by Ralph Amissah
0.8.12 2010-02-18 diakonos(1)