11-19-2001
The above approach will work just fine. You could also use vi and simply do a global search and replace. vi the file and hit your colon key and then enter the following (thus your whole command will look like the following) ":%s/1/2/g"
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to figure out how to build a small shell script that will find old .shtml files in every /tgp/ directory on the server and delete them if they are older than 10 days...
The structure of the paths are like this:
/home/domains/www.domain2.com/tgp/
/home/domains/www.domain3.com/tgp/... (1 Reply)
Discussion started by: Neko
1 Replies
2. Shell Programming and Scripting
I am trying to strip all leading and trailing spaces of a shell variable using either awk or sed or any other utility, however unscuccessful and need your help.
echo $SH_VAR | command_line Syntax.
The SH_VAR contains embedded spaces which needs to be preserved. I need only for the leading and... (6 Replies)
Discussion started by: jerardfjay
6 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a problem where I need to append few spaces(say 10 spaces) for each line in a file whose length is say(100 chars) and others leave as it is.
I tried to find the length of each line and then if the length is say 100 chars then tried to write those lines into another file and use a sed... (17 Replies)
Discussion started by: prathima
17 Replies
4. Shell Programming and Scripting
Hi, I have this code to search all "cif" files using wildcard
for file in *.cif
do
grep "Uiso" $file | awk '{ print $3, $4, $5 }' > tet
done
I get this error
"grep: *.cif: No such file or directory"
Please where am I going wrong!!!
Thank you in advance (6 Replies)
Discussion started by: princessotes
6 Replies
5. Shell Programming and Scripting
Hello All,
I am trying to remove all tabspaces and all blankspaces from my file using sed & awk, but not getting proper code. Please help me out.
My file is like this (<b> means one blank space, <t> means one tab space)-
$ cat file
NARESH<b><b><b>KUMAR<t><t>PRADHAN... (3 Replies)
Discussion started by: NARESH1302
3 Replies
6. Shell Programming and Scripting
Hi,
Can anyone help me how to use * in if statement.
File contains below
line1:a|b|c|Apple-RED|
line2:c|d|e|Apple-Green|
line3:f|g|h|Orange|
I need to find line by line 4th field contains 'Apple' or not.
Please help me at the earliest. (6 Replies)
Discussion started by: jam_prasanna
6 Replies
7. Shell Programming and Scripting
Hi Experts,
I want to use ls in the below form:
ls -l *.{txt,TXT} (working fine)
but when i am declaring a variable,
VAR="*.{txt,TXT}"
ls -l $VAR is not working. Please help.
Thanks. (4 Replies)
Discussion started by: sugarcane
4 Replies
8. OS X (Apple)
CD_numb is AM017
this code:
set the_Firstcom_CD to (do shell script "ls -d '/volumes/audioNAS/Firstcom/Access Music/' ") & CD_numb
gives me this:
"/volumes/audioNAS/Firstcom/Access Music/AM017"
the item I am looking for is AM017Q.
I can get the "*" syntax right so it never finder... (7 Replies)
Discussion started by: sbrady
7 Replies
9. Shell Programming and Scripting
I think I must be missing something obvious but I have a file containing a list of files and paths, some with wildcard, others with spaces. e.g.
/this/is/a/file
/this/is/a/directory/
/this/is/a/collection/*
/this/has spaces/in/it
/this/had spaces/and/list/of/files*... (6 Replies)
Discussion started by: mij
6 Replies
10. Shell Programming and Scripting
I am writing a code that can move and archve all the files in a directory except the latest file based on file pattern provided in a controlfile.
The filename is in the form of pattern. So basically we find the all the files of the pattern provided and archive all of them, leaving one latest file.... (3 Replies)
Discussion started by: Saanvi1
3 Replies
LEARN ABOUT DEBIAN
launchy
MANPAGE(1) MANPAGE(1)
NAME
Launchy - smart search launcher utility
SYNOPSIS
launchy [options]
DESCRIPTION
Launchy is a cross-platform utility designed to help you forget about your start menu, the icons on your desktop, and even your file
manager.
Launchy indexes the programs in your start menu and can launch your documents, project files, folders, and bookmarks with just a few
keystrokes.
Once Launchy has been started, it hides in the background. You bring it forward by holding the Ctrl and the Space keys. You can then type
in a few keys of the program you are searching for and hit enter once it has been found. You can also make Launchy dissappear again by
hitting the Escape key or Ctrl+Space.
Launchy allows you to add additional command line parameters to the selected launch. Simply hit Tab key once you have found the application
you are interested in and then enter the parameters.
When the input text area is empty, press the down arrow key and Launchy will display a history of the commands entered previously. You can
scroll up and down the list and press Enter key to repeat the command. Pressing Shift+Delete instead will remove the item from the history.
OPTIONS
-exit Attempt to close any running instances of Launchy.
-multiple Allows more than one instance of Launchy to be run.
-options Shows the options dialog.
-rescan Rescan the catalog.
-rescue Resets LaunchyaXXs position to the center of the screen and selects the default skin.
-show Shows Launchy's window (default is to launch hidden in most cases). Can be used as a way to active Launchy from a
shortcut.
If -multiple is not used and Launchy is already running, then the command will be sent to the running instance of Launchy.
KNOWN ISSUES
Not all skins will work with Linux builds of Launchy. If you're running a compositing manager (compiz or beryl) then the skins should look
the same as in Windows. Otherwise, you will have to settle for the skins that look good without alpha transparency (like Default and Black
Glass).
If the black area of mask.png is perfectly rectangular then, for some reason, compiz won't mask it correctly and you will have a strange
black section around the skin.
SEE ALSO
Launchy homepage "<http://www.launchy.net>"
AUTHOR
Launchy authors are Josh Karlin, Simon Capewell and others.
This manual page was written by Ricardo Mones for the Debian project (and may be used by others).
2012-05-22 MANPAGE(1)