Search Results

Search: Posts Made By: aav1307
1,892
Posted By aav1307
Print column based on pattern
Hi all,

how print on columns when contain un pattern specific,

e.g.
$cat file1


3234 234 2323
number1 number2 number3
123 242 124
124 number2 324
424 543 626
number1 3463 234
534...
1,510
Posted By aav1307
thanks just perfect and sorry for code, ...
thanks just perfect

and sorry for code,

you are genius

---------- Post updated at 08:02 AM ---------- Previous update was at 08:00 AM ----------

thanks corona perfect

thanks all,
1,510
Posted By aav1307
Output read variable
Hi all, how read varaible and ouput in colum,

e.g.

$ echo $VAR1

opc op odi games gopher vcsa abrt

I like

$ echo $VAR1

opc
op
odi
games
gopher
vcsa
abrt
Forum: HP-UX 09-09-2015
5,435
Posted By aav1307
thanks you explain
thanks you explain
Forum: HP-UX 09-08-2015
5,435
Posted By aav1307
HP-UX how formating LUN disk
Hello folks,

I have Hp.ux 11.31 and I need know how formating in OS new LUN disk attach to system

e.g. the wwid:

# scsimgr lun_map -D /dev/rdisk/disk4

LUN PATH INFORMATION FOR LUN...
2,324
Posted By aav1307
pure genio thank you ,
pure genio

thank you ,
2,324
Posted By aav1307
Print before pattern
Hi all,

i have file some,
$cat file1

1233312/ version 0120
2312/ version 0121


i need print only value before / e.g.

$cat file1
1233312
2312

Thanks you,
1,340
Posted By aav1307
Output in separate files
Hi all,

i have the bash script for remote conection,


for hosts in $(cat /list); do
ssh user1@$hosts "hostname";
done


execute hostname command by all hosts and show standar...
36,073
Posted By aav1307
Nice Thank you
Nice

Thank you
36,073
Posted By aav1307
Add hostname to file
How can add stamp hostname to create new file, e. g.



user@machine $ touch file1-$(date +%Y-%m-%d_%H:%M:%S)

generate

file1-2015-01-30_11:24:55



I wannt touch file with hotname...
1,286
Posted By aav1307
off course but not easy aslo some links is close,...
off course but not easy aslo some links is close,

thanks,
1,286
Posted By aav1307
Delete duplicate row
Hi all,

how can delete duplicate files in file form, e.g.



$cat file1
aaa 123 234 345 456
bbb 345 345 657 568
ccc 345 768 897 456
aaa 123 234 345 456
ddd 786 784 234 263
ccc ...
2,040
Posted By aav1307
Yes fine this work awk 'NF!=1' file
Yes fine this work
awk 'NF!=1' file
2,040
Posted By aav1307
Yes sorry exactly delete all rows which contain...
Yes sorry exactly delete all rows which contain blank

$cat file1
aaa 111 222 333 444
bbb 555 666 777 888
ccc
ddd 1010 1010 1010
eee

to

$cat file1
aaa 111 222 333 444
bbb...
2,040
Posted By aav1307
Delete blank line in regular file
Hi all,

I have file1 with line blank e.g.


$cat file1
aaa 111 222 333 444
bbb 555 666 777 888
ccc
ddd 1010 1010 1010
eee


then i need delete the lines blank (3 and 5) so show

...
Forum: AIX 01-19-2015
5,927
Posted By aav1307
root@hmc>lssyscfg -r sys -F name:serial_num:state...
root@hmc>lssyscfg -r sys -F name:serial_num:state
root@hmc> lssyscfg -m NAME-SERVER -r lpar -F name:state

edit by bakunin: please use CODE-tags when posting code, as required by the rules...
7,588
Posted By aav1307
Excelent :b:
Excelent :b:
7,588
Posted By aav1307
Copy contain file to end another file
Hi All,

How I can paste contain big file1 to end another file2, e.g.,

$cat file1
aaaaa
bbbbb
ccccc$cat file2
11111 22222 3333 4444
55555 66666 7777 8888then want like

paste contain...
1,230
Posted By aav1307
Read contain files find and print to new file
Hi All,

Sorrry by basic question but I have many files text plane e.g.

$ls
file1 file2 file3 ..

etc.,
$cat file1

123
244
345
NNN
4234
QQQ
423534

How can read contain each...
3,545
Posted By aav1307
Very fine Thanks you ---------- Post...
Very fine

Thanks you

---------- Post updated at 07:20 AM ---------- Previous update was at 05:49 AM ----------

Thaks so much Don Cragun,

Just like this, excelent, one finally question,...
3,545
Posted By aav1307
Merge column file
Hi All,

I have on file1 and file2 some,

$cat file1
aaa
bbb
ccc
ddd
eee
fff

ggg
hhh
iii
jjj

with line blank,

and
977
Posted By aav1307
Script read variable with for
Hi All,

How I can read on variable with cycle for in bash script e.g.#!/bin/bash

VAR1=`command1 sentence list`

for i in $(cat $VAR1);
do
VAR2=`command2 $i`
echo $VAR2
doneSo...
1,154
Posted By aav1307
From line 2 to end file
Hello all,

I have filex

$cat filex

camp1 camp2 camp3
111 222 333
444 555 666
777 888 999

then i need output with and not line 1 or line 2 to end file

$cat...
1,195
Posted By aav1307
Justif orden col raw file
Hi All,

I need order file some, e.g.

$cat file

data description importantainfo
121 desp1 info1
122 desp2 info21
2342 desp3 info32
5345 desp4 info43

the how can make file

but out...
1,282
Posted By aav1307
thanks XL and masters excelente very fine...
thanks XL and masters excelente very fine solution

happy hollydays
Showing results 1 to 25 of 33

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