Search Results

Search: Posts Made By: ashanabey
1,352
Posted By ashanabey
Join Lines
Hi

how do I join files like below in script.

Thanks,
Ashan

there are may line like this in the file.

zone name DR_TMP_A_sev1_3eA vsan 200
pwwn 50:00:09:73:f0:16:35:08
pwwn...
2,225
Posted By ashanabey
Add items to ksh array
Hi

I need a code help put below items in to array and display in order like this

Thanks,
Ashan

0AD4 R2 03A1 000198701333 0AD4 R1 270B 000198701616

------
0AD4
R2
03A1...
974
Posted By ashanabey
Issue is rest of the output also get hyphen mark,...
Issue is rest of the output also get hyphen mark, need to avoid hyphen shown below.


Entered Array Id is : (*** -4122 ***)

Entered Clone File is : (*** -dev.txt ***)...
974
Posted By ashanabey
Thanks for your reply can you please explain the...
Thanks for your reply can you please explain the code and who it work.
get_opt(){
OPTS=":-copy:-differential:-precopy:-nopcopy"
opt="${1#[-]*}${OPTS##*:-$1}"
opt="-${opt%%:*}"
opt="-${opt#[-]*}"...
974
Posted By ashanabey
Setting letter as variable
I need to pass letter like "c" for "-copy" and need to read by variable $sel_mod, My I know the good way of writing the script.

Example:

Select one of the Clone Mode ( '-copy',...
1,963
Posted By ashanabey
File Select Menu Script
Hi All,

I need to develop a bash script list “list of files” and able to select if any and set as globe variable in script and use for other function.

I would like to see in menu format.
...
1,117
Posted By ashanabey
text format
Hi all

I need you help to create script get the below output

Thanks in advance.
Ashan

name.txt
Wymouth_MRI_Lun79
PACS DR TEMP R drive

stat.txt
NO Normal
Normal

Out need...
2,997
Posted By ashanabey
Thanks! Peasant
Thanks! Peasant
2,997
Posted By ashanabey
if i use awk look for the colum $5, I will get 0%...
if i use awk look for the colum $5, I will get 0% and " 1008120580" , my objective to align "%" right side the use awk to get "%" file system mount.
2,997
Posted By ashanabey
I cant find the option to attached txt file to...
I cant find the option to attached txt file to post.
2,997
Posted By ashanabey
HPUX "bdf" , "%" align to right side.
Hi All,
Need you help.
I have HPUX “bdf” output, I need % to be align to right side. if you see there are long
file systems lv so i cant do column formatting.
Any idea or best way to align the...
808
Posted By ashanabey
How script below in perl
Hi,
Can some one help on the below script to writen in perl. also i have list out the sample output.

I need to run on a windows env.

Thx!
Ashan

$cat dmx3_all_cap_find.sh

for file...
4,119
Posted By ashanabey
how do i incrementing lines in any txt file and...
how do i incrementing lines in any txt file and print.
4,119
Posted By ashanabey
Txh! it works for me. now i can fix my script. ...
Txh! it works for me. now i can fix my script.

cat b.txt |sed 'N; s/\n/ /'
rs6qditim06_A_DMX3_7bB c0:50:76:03:06:0e:00:08
fra1bvch03p_B_DMX3_8bB c0:50:76:03:06:0e:00:0a
4,119
Posted By ashanabey
How do i increment each line in the file and...
How do i increment each line in the file and read, If can assign to two variables while increment line then i can get the output I need.

cat b.txt |paste -s -d " " - > c.txt
output...
4,119
Posted By ashanabey
incrementing lines in the file & format output.
Hi All,
I need read the file and out put format as below using ksh, I wrote below script its keep on repeating first line in the file.
may i know the best way to get the below out put while...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 07:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy