10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a variable like below:
str1="10.9.11.128\n-rwxr-xr-x user1 2019-12-29 17:53 /var/branch/custom/tg.xml 286030210\n10.9.12.129\n-rwxr-xr-x user1 2019-12-29 17:53 /app/branch/custom/tg.xml 286030210\n10.9.20.130\n-rwxr-xr-x user1 2019-12-29 17:53 /web/branch/custom/tg.xml 286030210"
I... (8 Replies)
Discussion started by: mohtashims
8 Replies
2. Shell Programming and Scripting
Hi,
I am Beginner in writing shell scripting. I have tried to get the character count using wc command. But it is not giving the correct result.
Could any one please tell me the reason?
$ cat k.ksh
Shell scripting
The character count should be 15 but it is displaying as 16 when i use... (8 Replies)
Discussion started by: nikesh29
8 Replies
3. Shell Programming and Scripting
Hi
When i used :set list in vi , i have seen a lot ^I characters in my file. Could anyone please help me how to remove this characters ?
Issue : When i used awk to combine two file (one of the file has ^I characters) then my output is different than what am expecting, one of column being... (2 Replies)
Discussion started by: rakeshkumar
2 Replies
4. Shell Programming and Scripting
Hi All,
"Please read the below information carefully."
i have tried the below code for counting the number of lines present in text file ignoring blank lines
#! /bin/bash
clear
rdCount=0;
while read myline
do
if ; then
echo "line is empty"
else
echo $myline
let... (10 Replies)
Discussion started by: aish11
10 Replies
5. Shell Programming and Scripting
in a file we are getting control character in a file , is there any way that they can be removed once we have the file
for eg.
BEGIN-PROCEDURE INITIALIZE
^M
LET #row_count = 0^M
^M
^M (2 Replies)
Discussion started by: lalitpct
2 Replies
6. Programming
Hi,
I'm trying to load data into an Oracle DB. A Perl script opens a file that was created with vi on Unix, connects to the DB and inserts data.
All characters (some of which are special characters) in my data can be loaded except for one:
'
It turns into something else in the DB.
The... (3 Replies)
Discussion started by: TheG
3 Replies
7. Shell Programming and Scripting
Hi,
I have a pipe delimited file and I am running into an issue where a field is having some weird character and I am not able to clean it up. It is 2nd field and the weird character is M- . See below.
cat -v test.dat
02169| M- PATRICKM- MCALEER |Y
01318| M- LARRYM- PETERSON |Y
30319|... (5 Replies)
Discussion started by: msalam65
5 Replies
8. Shell Programming and Scripting
Hi All,
We are getting file into our unix box with multibyte characters. When we tried to view the file the record looks like this
Frédéric
Actually the data sent to us is
Frédéric
--> my locale charmap of unix is set to UTF8 only ... but still i am getting this problem.
I... (6 Replies)
Discussion started by: sandeeppvk
6 Replies
9. UNIX for Advanced & Expert Users
1. Is . wildcard? , the documented wildcard are "*", "?", and ""
. seems mean everything, the follwing cmd will copy everything
cp -r /tmp/test1/. /tmp/test2/
However it doesn't work for rm, why?
$ ls -a
. .. .a .aa aa t2
$ rm -rf .
$ ls -a
. .. .a .aa ... (3 Replies)
Discussion started by: honglus
3 Replies
10. Programming
Hi,
Could anybody explain how to change the character set of a particular string in C in unix. we are using HP-UX as OS. We require to change the input string which is in cp1250 format to utf-8.
A sample code would help. Thnx in advance (1 Reply)
Discussion started by: gucho
1 Replies