07-14-2009
Many thanks Methyl!!!!!
You can not imagine how much easier you made my life!!!!!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a few terms with a comma as the last character.
Can any experts show me how to remove the last character?
Note the the length of the term is not fix.
Input:
1,
2,
12,
14,
103,
198,
3006,
Output,
1 (6 Replies)
Discussion started by: Raynon
6 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am facing one interesting problem :
I have a file which contains data like this
459,|1998-11-047|a |b |c \n efg | d|e | \n
459,|1998-11-047|a \n c|b |c \n efg | d|e | \n
Basically what I have to do is , I have to remove all \n which is coming ( enclosed ) in between... (7 Replies)
Discussion started by: shihabvk
7 Replies
3. UNIX for Dummies Questions & Answers
Dear Members,
I have a file which is a single line file. It has "\" character and i need to replace this character with a new line character.
How can we do this?
I tried with sed but it did not work.
sed 's//"\n"/g' t1 > t2Thanks
Sandeep (3 Replies)
Discussion started by: sandeep_1105
3 Replies
4. HP-UX
Hi Experts,
I have data coming in 4 columns and there are new line characters \n in between the data. I need to remove the new line characters in the middle of the row and keep the \n character at the end of the line.
File is comma (,) seperated.
Eg:
ID,Client ,SNo,Rank
37,Airtel \n... (8 Replies)
Discussion started by: sasikari
8 Replies
5. Shell Programming and Scripting
Hi All
Please help me to remove the first 2 character from the file name.
files are like this
$ ls
12aman file
13atul si
56rana se
I want to remove the first 2 char which are numbers.
I want the o/p like thus
aman file
atul si
rana se (8 Replies)
Discussion started by: atul9806
8 Replies
6. Shell Programming and Scripting
Hi All,
I have different type of file (.txt,.csv,.xml) format in my current directory. My requirement is that I need to remove the last character from the file format.
Example
count.txt$
csp_rules.csv^
Date.xml~
Need Output:
count.txt
csp_rules.csv
Date.xml
How to do that?.... (5 Replies)
Discussion started by: suresh01_apk
5 Replies
7. Shell Programming and Scripting
How can i remove the first and last character of strings like below:
"^^^613*"
"admt130"
"^^^613*"
"123456"
"adg8484"
"DQitYV09dh1C"
Means i wanna remove the quotes("").
Please help (17 Replies)
Discussion started by: proactiveaditya
17 Replies
8. Shell Programming and Scripting
Hi all..
I have a text file which looks like below:
abcd
efgh
ijkl
(blank space)
I need to remove only the last (blank space) from the file. When I try wc -l the file name,the number of lines coming is 3 only, however blank space is there in the file.
I have tried options like... (14 Replies)
Discussion started by: Sathya83aa
14 Replies
9. Shell Programming and Scripting
I have a file which comes every day and the file data look's as below.
Vi abc.txt
a|b|c|d\n
a|g|h|j\n
Some times we receive the file with only a new line character in the file like
vi abc.txt
\n (8 Replies)
Discussion started by: rak Kundra
8 Replies
10. UNIX for Beginners Questions & Answers
Hi Everybody:
I need your help, please...
I have this file *.txt
0000 | 16010201 22000000 67892000 00000000 00000000 00000100 72246681 28E08236
| ~~~~"~~~g~ ~~~~~~~~~~~~~r$f~(~~6 |
0020 | 10476173 90010100 10000000 00000001 05000226 17163011 12442212 48140484
|... (2 Replies)
Discussion started by: solaris21
2 Replies
LEARN ABOUT CENTOS
pacman
PACMAN(6) Games Manual PACMAN(6)
NAME
pacman - the game of pacman
SYNOPSIS
pacman [grey]
DESCRIPTION
Pacman is an old action game.
You are Pacman, and you are supposed to eat all the small dots to get to the next level. You are also supposed to keep away from the
ghosts, if they take you, you lose one life, unless you have eaten a large dot, then you can, for a limited amount of time, chase and eat
the ghosts. There is also bonus available, for a limited amount of time. An X gives just points, but a little pacman gives an extra life.
You use either keyboard or mouse. Default from start is keyboard.
Keyboard mode: To move use arrows, to quit, press q, to use mouse, press m.
Mouse mode: To move, move mouse, to quit, press RButton, to use keyboard, press LButton.
Details: When pacman has moved to a new place, if you want it to change it's moving direction, hit key/move mouse until it has moved.
OPTIONS
grey To start in grey mode instead of the default color.
ENVIRONMENT
DISPLAY To get default display.
AUTHOR
Roar Thronaes, roart@nvg.unit.no.
This man page written by Joerg Wunsch, joerg_wunsch@uriah.heep.sax.de.
PACMAN(6)