10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Would the same version of Korn Shell (let's say ksh93) would use the same syntax on UNIX and LINUX and work exactly the same? Thanks (3 Replies)
Discussion started by: rdogadin
3 Replies
2. Linux
we have one simple script that works fine as expected while running it manually. However, it does not work the way it should be when scheduled through CRON. Script:
a="Perform"
b="Test"
output="$a\n$b\n"
echo "$output"
while executing the above script, it should print the values of a and b... (2 Replies)
Discussion started by: jansat
2 Replies
3. Linux
Clear in Linux
#!/usr/bin/ksh
am using clear in the script, but it is not working,
it gives an error as follows,
'xterm': unknown terminal type.
please help out.:confused:
---------- Post updated at 01:19 PM ---------- Previous update was at 12:01 PM ----------
if
then
... (2 Replies)
Discussion started by: pradebban
2 Replies
4. Shell Programming and Scripting
Hi,
I have a file, which contains ^C or ^A characters from mainfrme system, it's dec 192 or octal 300 hex C0. I want to replace this character with new line.
I used commands, but it didn't worked.
tr '\o300' '\n' <t >t2
#or
tr '\xC0' '\n' <t > t2
Can somebody help me to do... (2 Replies)
Discussion started by: vnag97
2 Replies
5. Shell Programming and Scripting
hi all
i want to delete a line upto a particular character. here is example.
cp cms/images/wifi-zone.png
i want to delete the line till . (cp cms/images/wifi-zone.) so the output wud be "png" only
how can i do it?
also please note down that dot (.) can also occur multiple... (12 Replies)
Discussion started by: kashifv
12 Replies
6. Shell Programming and Scripting
Hi,
I need to cut filename in Linux ksh.
for example file name is c_xxxx_cp_200908175035.zip. I need to get variable with only c_xxxx_cp value. (10 Replies)
Discussion started by: juliyp
10 Replies
7. Shell Programming and Scripting
If we assume that each line between the {} container is an XML document then What I want to remove the newline character from all lines within each container to have one XMDL document per line I wrote a bit of sed after trawling the web:
e.g.
#!/bin/sed -nf
H
/}/ {
x
s/\n//g
p... (3 Replies)
Discussion started by: JamesJSC
3 Replies
8. Shell Programming and Scripting
Hi,
I did the below.
$ print "\\n"
$
I am curious, why does \\n give two new lines? I would have thought that the first \ would escape the second \, and so we'd get \n printed. But we didn't.
Any ideas?
Thanks. (7 Replies)
Discussion started by: JamesByars
7 Replies
9. Shell Programming and Scripting
Newline character "\n" not working for ksh in linux AS 3.0
Command :
$echo "Hi\nHi"
$Hi\nHi
$
Expected output :
$echo "Hi\nHi"
Hi
Hi
$
Can some help me on this
Thanks in advance
Sanish. (11 Replies)
Discussion started by: sanikv
11 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I need to count the number of occurences of the character " in a file that contains huge number of records.
What command could I use?
Please specify in detail since I am new :|
Thanks much. (3 Replies)
Discussion started by: GMMike
3 Replies