10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a file with this line, it's always in the first line:
I want to remove these special characters: ´╗┐
file1
´╗┐\\bar\c$\test2\;3.348.118 Bytes;160 ;3
\\bar\c$\test\;35 Bytes;2 ;1
I want the same file to be only
\\bar\c$\test2\;3.348.118 Bytes;160 ;3
\\bar\c$\test\;35... (4 Replies)
Discussion started by: nakaedu
4 Replies
2. Programming
Hello,
Please ,how can verify, if a case of buffer contains a special char ?
(in C)
Thank you. (3 Replies)
Discussion started by: chercheur857
3 Replies
3. Shell Programming and Scripting
Hi,
I have a input of the form:
..., word1, word2, word3...
I want out put of the form
word1, word2, word3
I tried echo '..., word1, word2, word3...' | tr -d '...,'
but that takes out the commas in the middle too so I get
word1 word2 word3
but I want the commas in the middle.
... (3 Replies)
Discussion started by: forumbaba
3 Replies
4. Shell Programming and Scripting
Hello,
I have some data in output file.In that i need to split the special char "(" and ")" and store it.
This is example of o/p file.
(OHC12345)
(OHC12415)
(OHC12765)
(OHC12545)
I need like
OHC12345
OHC12415
OHC12765
OHC12545
--Thanks (5 Replies)
Discussion started by: rasingraj
5 Replies
5. Shell Programming and Scripting
I am reading the free book linux 101 hacks.
The book show how to create a new command mkdircd, which create a new directory and then move you to the directory.
so it just to add the following function (down) to the .bash_profile
function mkdircd () { mkdir -p "$@" && eval cd
"\"\$$#\""; }... (5 Replies)
Discussion started by: programAngel
5 Replies
6. Shell Programming and Scripting
Hi I am working on a bash script and would know how to use cut or sed to remove
(F/.M/d h) from a text file.
Before
1 text to save (F/.M/d h)
after
1 text to save
Thanks in advance (5 Replies)
Discussion started by: pelle
5 Replies
7. Shell Programming and Scripting
Hi,
I've a txt file which contains the following kind of listed data
18971 ./aosrp18.r
15340 ./aosrp12.r
22996 ./aosrp08.r
17125 ./aosrp06.r
I'm trying to get rid of the ./ in the file and have tried the following with sed but I'm not getting the correct result... I'm not sure what way... (7 Replies)
Discussion started by: Jazmania
7 Replies
8. Shell Programming and Scripting
Hi All,
I have a data file in UNIX which i am trying to load into Oracle table using Oracle SQL Loader.
The problem is, one of the filed contains special character (ex: Square). And due to this reason, my script fails.
Could you please let me know, how to identify which character is... (1 Reply)
Discussion started by: Amit.Sagpariya
1 Replies
9. Shell Programming and Scripting
We develop a file in windows and move to unix box as a part of deployment. When we do this, we get ctrl-M(^M) character added to the file. So we need to remove ctrl-M(^M) character from all the files from deployment folder and all subfolders folder. Currently we move to individual folders and... (5 Replies)
Discussion started by: thinakarmani
5 Replies
10. UNIX for Advanced & Expert Users
Anyone is well-versed to use egrep to search a file for a line containing both:
1) AAA
2) $
I am having problem escaping the dollar sign when using egrep in conjunction with satisfying AAA as well.
E.g. Text file
Line 1 AAA
Line 2 $$$
Line 3 AAA BBB $
Line 4 $$$ BBB AA
will return me... (2 Replies)
Discussion started by: izy100
2 Replies