Search Results

Search: Posts Made By: convenientstore
11,468
Posted By convenientstore
ah.... nice.. thanks :-)
ah.... nice.. thanks :-)
3,360
Posted By convenientstore
it's open sshd and it handles both version 1 and...
it's open sshd and it handles both version 1 and 2..

this is definitely furstrating issue.
No where in google that I have come across where it clearli explains how to do multiple commands through...
2,312
Posted By convenientstore
so, basically, at the begining, put li value to...
so, basically, at the begining, put li value to null,

and if first or 3rd line, then... hmm I still dont' understand this part of
how {li=$0"|"li} equals concatenate that row(which is what's in...
2,312
Posted By convenientstore
Trying to understand below; what is this...
Trying to understand below;

what is this do? NR==3{li=$0"|"li}


a=$(awk 'BEGIN{li=""}NR==1||NR==3{li=$0"|"li}END{print li}' "file")
3,360
Posted By convenientstore
ssh and commands
can someone point me to where it explains how to set the right commands wd ssh?

cat something | while read h; do awk 'BEGIN {FS="\n"; RS=""; ORS="\n\n"} {if ($0~/'$h'/) print hdrvar,"\n",$0 }'...
3,892
Posted By convenientstore
jean-peire, thanks, this works like a charm ...
jean-peire, thanks, this works like a charm

file * | grep perl | awk -F':' '{print $1}' | while read yahoo ; do mv $yahoo /script/data ; done
2,520
Posted By convenientstore
yup.. worked.. thank u
yup.. worked.. thank u
2,312
Posted By convenientstore
wil try them & get back to u guys.. thank u
wil try them & get back to u guys.. thank u
3,892
Posted By convenientstore
that is really koo and it SHOULD have been what i...
that is really koo and it SHOULD have been what i have been looking for. but.. one unfortunate thing si, i am not running grep.. i am running a awk program.. and it is not liking the argument too...
3,892
Posted By convenientstore
no luck.. I am suprised that there is no...
no luck..

I am suprised that there is no easy way to do this??

[root@rleeserver tmp]# cat yahoo
now
[root@rleeserver tmp]# cat yahoo2
never
now
never
[root@rleeserver tmp]# cat yahoo |...
3,892
Posted By convenientstore
I did and that doesn't seem to help me.. ...
I did and that doesn't seem to help me..

command | xargs grep file

this does not work
2,312
Posted By convenientstore
I was hoping that there was way to do it without...
I was hoping that there was way to do it without going through the whole file everytime
3,892
Posted By convenientstore
pipe | question
how do you pipe the results to next statement as argument?

somecommand | grep $result somefile

how do you reference $result with??
2,312
Posted By convenientstore
not sure how to
I have a command that will produce about 20 lines of output

what is the best way to store some of the results to certain variables?

let's say command output shows
...
2,780
Posted By convenientstore
to see space, tab, end of the line chracters
what can I use ??
In vi, I can use :set list <-- and see end of line $.. or use cat -A but I am wondering if there is command or program that allows me to see all the hidden characters( space, tab...
6,563
Posted By convenientstore
thanks guys ; below was my mistake.. (have...
thanks guys ; below was my mistake.. (have question though at the bottom)

[root@rleeserver tmp]# cat yaho11.b
#! /bin/sh

dir1=$1
dir2=$2
echo $dir1
echo $dir2

find /home/"$dir1" -type d...
1,664
Posted By convenientstore
how do u find these things? that's great.....
how do u find these things?

that's great.. thank you so much
1,664
Posted By convenientstore
shell question
Can someone please explain the PS1="${x##*/}\$ " ??

how does that lop off leading components?

I don't understand it.. thanks

cd ( ) {

command cd "$@" Actually change directory
...
25,183
Posted By convenientstore
enabling trace set +x disables it
enabling trace

set +x disables it
6,563
Posted By convenientstore
that did not work [root@rleeserver tmp]# cat...
that did not work

[root@rleeserver tmp]# cat yaho11
#! /bin/sh

dir1=$1
dir2=$2
echo $dir1
echo $dir2

find /home/"$dir1" -type d -print |
sed -e "s;/home/$dir1 /;/home/$dir2/;" |
...
6,563
Posted By convenientstore
I got it.. can someone place explain why in...
I got it..

can someone place explain why in sed, using single quote ' ' makes this work versus double quote " " ??

[root@rleeserver tmp]# cat yaho11
#! /bin/sh

dir1=$1
dir2=$2
echo $dir1...
6,563
Posted By convenientstore
what is the right syntax ??
IN the book below example showed

find /home/tolstoy -type d -print | Find all directories

sed 's;/home/tolstoy/;/home/lt/;' | Change name, note use of semicolon delimiter

...
2,259
Posted By convenientstore
tr explanation please
how does below tr command replace nonletters with newlines?

I think I understand tr -cs '\n' part.. but what is

A-Za-z\' <--- what is this??

tr -cs A-Za-z\' '\n' |


-c --complement
...
2,166
Posted By convenientstore
tr explanation please
how does below tr command replace nonletters with newlines?

I think I understand tr -cs '\n' part.. but what is

A-Za-z\' <--- what is this??

tr -cs A-Za-z\' '\n' |


-c --complement
...
1,601
Posted By convenientstore
fileitself.. I gave 777 permission...
fileitself.. I gave 777 permission...
Showing results 1 to 25 of 42

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