Input file:
Output file
If column 1 have "_", I would like to change/replace the "_" into "\t" delimiter;
If column 1 have "_" and "," at the same time, I would like the desired output file have same data contents in column 1 and column 2;
Below is the command I try:
I feel like the command I try is not really efficient to generate desired output file.
Thanks for any advice.
HI
My doubt may be basic one but I need to get it clarified..
When i use "if" condition that checks for many AND, OR logical conditions
like
if ]; then
return 0
fi
Even the if condition fails it returns as zero.. Any clue..
But if i add else condition like
if ]; ... (2 Replies)
Hi, unix newbi here.
Im currently on the bash shell, what are the commands to run additional shells?
for example i want to run csh and then ksh?
Thanks.
BT. (2 Replies)
hi,
I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command
Here are my simple script
After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
Executed the following if conditions .. and got different results .
only (( )) gave correct o/p with all scenarios .
Can anybody please let me know what is the difference between and ] and ((condition)) when used with if condition.
And why each condition gave different result.
1.... (2 Replies)
How can I add additional mirrors to my CENTOS distro, according to this page AdditionalResources/Repositories - CentOS Wiki there are few fedora project repositories I'd like to add any of them but I don't know how?
Thank you in advance (0 Replies)
I have a SUN V245 with Solaris 10 newly installed. I have 4 73Gb HDs in this server and thought I'd use one of the other 3 to load some applications but after issueing a mount it appears that I no longer have a CLI interpreter --
# mount -F ufs /dev/dsk/c1t2d0s0 /usr
# df
bash:... (1 Reply)
Hi,
I have two fonts installed on my AIX machine:
FONT FILE GLYPH FONT
ID NAME SIZE ENCODING
==== ============== ===== =========
0 Erg22.iso1.snf 12x30 ISO8859-1
1 Erg11.iso1.snf 8x15 ISO8859-1
I want to install more, how to obtain available fonts list ? What filesets I must install ?... (0 Replies)
Hello:
I have a customer who is requesting the following security features on a Solaris 8 system:
1. Password history for the three previous passwords.
2. User account lockout after 3 failed login attempts.
Can anyone help provide me with a solution or direction for the above? (1 Reply)
Hi there,
I am just wondering if somebody can help me find out why am I getting additional characters on my "echo" command to create a text file. Here's my unix script :
#!/bin/ksh
#============================================================
# Script Name : chk_ORDHD.ksh
# Description... (2 Replies)