Hi I have an XML file. Which has spaces between different records....
current file( Has many lines, like this... I want to delete all the spaces between > and <, if there are only spaces between them)
input file
<xyzr> <abc>1234</xyzr> <aaa> <bbb> ayz mnz</bbb> <sen>KEA... (6 Replies)
hey..
i had a problem with the unix command when i want to remove the white spaces in a string..i guess i cud do it with a sed command but i get an error when i give space in the square brackets..
string="nh hjh llk"
p=`echo $string | sed 's/ //g'`
i donno how to give space charater and... (2 Replies)
Hi
I have a shell script that looks for running processes in order to kill them. The script (ksh) gets the PID of these processes using the following:
PROCS=`ps -fu ${USERID} | egrep "MONITOR" | grep -v grep | cut -d" " -f4`
However, I spotted an issue where PID's of different lengths... (3 Replies)
Hey,
I'm using the command from this thread https://www.unix.com/unix-dummies-questions-answers/590-converting-list-into-line.html
to convert vertical lines to horzontal lines. But I need to remove the spaces that is created. Unfortunately I can't figure out where the space is in the code..
I... (2 Replies)
I want a user to be able to paste in a string like "01 3F 20 1F" and have the script reformat it to "013F201F" to pass it on to the next step.
I was trying to figure it out with awk but wasnt working well.
Never mind, found answer. did not know about tr :) (7 Replies)
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)
I have a problem mounting images because of the spaces in the filenames. Does anyone know how to rename files by removing the spaces with the find command?
find Desktop/$dir -name "*.dmg" -print -exec ??? (4 Replies)
Consider my input string as "abc|b f g|bj gy"
I am expecting the output as "abc|bfg|bj gy".
Please let me know how to achieve this in unix?
Thanks (8 Replies)
Hi ,
I want to go out of vi editor temporarily and execute a command in command prompt and again going back to the editor . Is it possible . Any help on this is really helpful.
1. Need to open vi
2. Temporarily come out and execute a command and go back to vi editor (6 Replies)
I have pipe separated file with lots of blank spaces.
After using sed -e 's/ *| */|/g' this command ,its giving me output as
TT0000013101640|
HCAMBLAMCNB010|Jul 3 2012 11:14AM|
HARYANA|
Bangali Mohalla |
TCL-UBR|9368040005|9355264655|9218509220|NULL
... (5 Replies)
Discussion started by: sususa
5 Replies
LEARN ABOUT DEBIAN
concat
concat(3tcl) Tcl Built-In Commands concat(3tcl)__________________________________________________________________________________________________________________________________________________NAME
concat - Join lists together
SYNOPSIS
concat ?arg arg ...?
_________________________________________________________________DESCRIPTION
This command joins each of its arguments together with spaces after trimming leading and trailing white-space from each of them. If all
the arguments are lists, this has the same effect as concatenating them into a single list. It permits any number of arguments; if no args
are supplied, the result is an empty string.
EXAMPLES
Although concat will concatenate lists, flattening them in the process (so giving the following interactive session):
% concat a b {c d e} {f {g h}}
a b c d e f {g h}
it will also concatenate things that are not lists, as can be seen from this session:
% concat " a b {c " d " e} f"
a b {c d e} f
Note also that the concatenation does not remove spaces from the middle of values, as can be seen here:
% concat "a b c" { d e f }
a b c d e f
(i.e., there are three spaces between each of the a, the b and the c).
SEE ALSO append(3tcl), eval(3tcl), join(3tcl)KEYWORDS
concatenate, join, lists
Tcl 8.3 concat(3tcl)