Search Results

Search: Posts Made By: phoenix_nebula
3,682
Posted By phoenix_nebula
@yinyuemi...
@yinyuemi (https://www.unix.com/members/302090799.html)
can you please explain me the code in detail plzz....
11,474
Posted By phoenix_nebula
please try this
sed s/^X//g yourfile
3,053
Posted By phoenix_nebula
cat tmp\\*.log | c:\\wbin\\sort.exe -k 3 -r ...
cat tmp\\*.log | c:\\wbin\\sort.exe -k 3 -r

Its combining all the tmp log files and the output of them is sorted by the 3rd column in reverse order.
:b: good luck with dis
2,478
Posted By phoenix_nebula
Try this awk '{print substr($0,1,2)"...
Try this


awk '{print substr($0,1,2)" "substr($0,3,4)}' myfile
Forum: Red Hat 11-13-2010
3,630
Posted By phoenix_nebula
Fedora temporarily obtain root previlages
Hii friends!!

i am quite a bit dealing with linux stuff i worked mostly on macosx unix side

i created a user phoenix during installation of fedora 14
now after installation i want some rights...
5,139
Posted By phoenix_nebula
Try this
bash-3.2$ cat f1.txt
aa 111 111
bash-3.2$ cat f2.txt
aa 555 555
bb 666 666
cc 777 777
bash-3.2$ awk '{print "grep -v "$1" f2.txt"}' f1.txt |sh
bb 666 666
cc 777 777
1,700
Posted By phoenix_nebula
Try this
sed 's/NAME$/NEW_NAME/g' yourfile
82,976
Posted By phoenix_nebula
Try this
head -40 yourfile.txt | tail -10
2,481
Posted By phoenix_nebula
Try this
bash-3.2$ cat 1.txt
bc
bn
nv
bash-3.2$ cat 2.txt
dbc
gnv
kjds
bash-3.2$ paste 1.txt 2.txt |xargs -n2 echo cp
cp bc dbc
cp bn gnv
cp nv kjds
bash-3.2$ paste 1.txt 2.txt |xargs -n2 echo cp...
1,376
Posted By phoenix_nebula
same as above
same as above
3,072
Posted By phoenix_nebula
bash-3.2$ cat test4 ABC_20101.2A.2010_01 ...
bash-3.2$ cat test4
ABC_20101.2A.2010_01
ABD_20103.2E.2010_04
ABE_20107.2R.2010_08
bash-3.2$ sed 'p;s/\..*$//g' test4 |xargs -n2 echo mv
mv ABC_20101.2A.2010_01 ABC_20101
mv...
Forum: Open Source 11-04-2010
422,938
Posted By phoenix_nebula
love Vi, Netbeans or eclipse for java
love Vi,
Netbeans or eclipse for java
1,348
Posted By phoenix_nebula
bash-3.2$ sed s/'<.[^>]*>'//g yourhtmlfile.htm ...
bash-3.2$ sed s/'<.[^>]*>'//g yourhtmlfile.htm

The above code removes all html tags and you stay with only text ...
ask if you have any problems
2,248
Posted By phoenix_nebula
bash-3.2$ cat test1 abc_ahb_one.v ...
bash-3.2$ cat test1
abc_ahb_one.v
abc_ahb_two.v
abc_ahb_three.v
bash-3.2$ sed 'p;s/abc/abc_qsb/g' test1 |xargs -n2 echo mv |sh
please try this and let me know if this works?
Thanks!
2,208
Posted By phoenix_nebula
Input file :test has your text bash-3.2$ cat...
Input file :test has your text

bash-3.2$ cat test | tr -d '\n' |sed 's/txt/txt#/g' |tr '#' '\n'
4888689!?!Change of PROD!TX!?!DETAILS!US!?!?!file_937_20101024_065520.txt
48887370!Change of...
Forum: What is on Your Mind? 11-03-2010
21,797
Posted By phoenix_nebula
i like this fourm than any other fourms i have...
i like this fourm than any other fourms i have been earlier;
very helpful guys!! and very responsive thanks for sharing your knowledge!!
3,765
Posted By phoenix_nebula
Try this
grep 'HDR' file |cut -f2 -d' '

or

grep 'HDR' file |awk -F' ' '{print $2}'
2,194
Posted By phoenix_nebula
thanks!
thanks!
8,951
Posted By phoenix_nebula
i am a beginner in unix, i think we could...
i am a beginner in unix,

i think we could pipe the output you got from above script and extract only the top portion you needed.
3,669
Posted By phoenix_nebula
It works brilliantly but please please can you...
It works brilliantly but please please can you explain me the logic please i m basic beginner in Awk
3,669
Posted By phoenix_nebula
Using Awk for extracting data in specific format
please help me writing a awk script


001_r.pdb 0.0265185
001_r.pdb 0.0437049
001_r.pdb 0.0240642
001_r.pdb 0.0310264
001_r.pdb 0.0200482
001_r.pdb 0.0146746
001_r.pdb 0.0351344
001_r.pdb...
2,194
Posted By phoenix_nebula
yes, but i am feeding them one by one and later...
yes, but i am feeding them one by one and later extracting required data
2,194
Posted By phoenix_nebula
Transposing columns with awk
I want a sweet simple time efficient awk script in online which gets output

001_r 0.0265185 0.0437049 0.0240642 0.0310264 0.0200482 0.0146746 0.0351344 0.0347856 0.036119 1.49

firstcoloumnvalue...
1,364
Posted By phoenix_nebula
bash-3.2$ cat a.sample |sed s/'='/' '/g |sort...
bash-3.2$ cat a.sample |sed s/'='/' '/g |sort -nrk2
10.180.8.234 40501
10.180.8.235 32591
10.180.8.231 31608
10.180.8.233 31606
10.180.8.236 31605
10.180.8.237 30561
10.180.8.232 29011...
1,710
Posted By phoenix_nebula
Use paste and later sort via first coloumn
Use paste and later sort via first coloumn
Showing results 1 to 25 of 42

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