Search Results

Search: Posts Made By: quirkasaurus
2,836
Posted By quirkasaurus
works for me: cat << EOF | ...
works for me:

cat << EOF |
:20:9400115251184711 :61:1509090908DR991,43NCOL09:04:0032 :86:/OCMT/EUR991,43/PT/FT/BN/ORANGE ESPAGNE S.A.U
EOF
tr ' ' '\012' |
awk '/^:/{printf("\n%s", $1);next;}...
7,944
Posted By quirkasaurus
eval reads everything between the quotes...
... and throws away the newlines.

The semi-colons are necessary as command separators.

But I'm still wondering why you want to make an environment file unreadable by certain users. All they...
1,555
Posted By quirkasaurus
grep -B
On my linux box, I use:

grep -B4 teen numbers.txt

nine
ten
eleven
twelve
thirteen
fourteen
fifteen

-A option for "lines after"
10,966
Posted By quirkasaurus
There must be something amiss with your...
There must be something amiss with your "LD_LIBRARY_PATH" shell environ. Try:

% echo $LD_LIBRARY_PATH
... in your login shell and as the first line in your shell script to compare the values....
217,749
Posted By quirkasaurus
i seriously do not recommend using "find" for...
i seriously do not recommend using "find" for this problem, as (as you know) it searches recursively...
i prefer the straightforward approach:


ls -l | grep "May 15" | awk '{print $9;}' | tee...
4,426
Posted By quirkasaurus
lemme guess... you don't own the file. you aren't...
lemme guess... you don't own the file. you aren't in the group.
therefore, you do not have execute permission on this file.


sh ./file_name


... should work.
4,120
Posted By quirkasaurus
latest_file=$( ssh remote_host /bin/ls -ltR...
latest_file=$( ssh remote_host /bin/ls -ltR /tmp/\* | head -1 | awk '{ print $9;}' )

scp remote_host:$latest_file .
886
Posted By quirkasaurus
first line: file1.h: file2.h file3.h ...
first line:
file1.h: file2.h file3.h

means.... that file1.h needs action if older than file2.h or file3.h.
however, no action specified.

file1.exe : file4.c file5.c
gcc -o file1.exe...
7,962
Posted By quirkasaurus
probably not the best for a gig+ sized file...
probably not the best for a gig+ sized file...
1,475
Posted By quirkasaurus
don't need the caret. ls -ld...
don't need the caret.


ls -ld /usr/bin/[abc]*
1,303
Posted By quirkasaurus
---------- Post updated at 06:19 AM ----------...
---------- Post updated at 06:19 AM ---------- Previous update was at 06:16 AM ----------

all righty then -- you might try:


% ssh remote_host "
`cat my-usb-script`
"


btw -- that does...
1,116
Posted By quirkasaurus
we'd like to see the following; a.) more...
we'd like to see the following;

a.) more details regarding input parameters
b.) sample output with how those input parameters will work
c.) your script attempt at solving the problem

other...
3,258
Posted By quirkasaurus
awk 'BEGIN{ IGNORECASE = 1; } /ant/' << EOF ...
awk 'BEGIN{ IGNORECASE = 1; }
/ant/' << EOF
ant
ANT
Ant
bat
cat
dog
EOF


ant
ANT
Ant
2,807
Posted By quirkasaurus
you don't have permission to either clobber the...
you don't have permission to either clobber the file ./jre-6u24-linux-i586.bin OR
if it's a directory, to create files in it.

Just make that file clobberable:

chmod 777...
941
Posted By quirkasaurus
cat << EOF | status ----------- ------ 2287 C...
cat << EOF |
status ----------- ------ 2287 C 1502 E 19
EOF

perl -lne '
s/--* //g;
s/ /\|/g;
s/\|/ /;
s/\|(.)\|([^\|]*)$/ $1\|$2/;
print;
'


a nasty little bit of edits....
786
Posted By quirkasaurus
why not just take 2 passes: grep ONE-STRING...
why not just take 2 passes:

grep ONE-STRING file_nm > this_file
grep OTHER-STRING file_nm > this_other_file

Or, to separate all unique TU's to their own files:


grep TU= file_name |
sed...
6,791
Posted By quirkasaurus
it actually has nothing to do with file...
it actually has nothing to do with file permissions.

it has only to do with the owner/group permissions on the directory.

In order for 2 users to be able to delete the same file,
the directory...
1,031
Posted By quirkasaurus
not enough information for me yet to help. Are...
not enough information for me yet to help.
Are you asking for a filter to just grab a bat day's worth of log entries?

In that case, it's a simple egrep:

egrep...
1,332
Posted By quirkasaurus
Either: vi +\?pico file_name should do...
Either:

vi +\?pico file_name

should do the trick. It opens the file, searching backwards for "pico".

vi +/pico file_name

works searching forward.
31,871
Posted By quirkasaurus
typeset -l section is creating a variable that...
typeset -l section
is creating a variable that will be forced lower case.
Check by typing:

typeset -l section
section=LSKDHFLKSDHF
echo $section

section=${2:-.}

Means, assign section...
32,986
Posted By quirkasaurus
you were very close. try something like this: ...
you were very close. try something like this:


awk '/Sun Dec 19 02:/,/Sun Dec 19 04:/' << EOF

dont get this

Sun Dec 19 02:58:01 EST 2010

get this
Sun Dec 19 04:58:01 EST 2010

but not...
3,871
Posted By quirkasaurus
where you have "sun" in the crontab file, it...
where you have "sun" in the crontab file, it should be 0.
the days of the week are numerical values.
3,831
Posted By quirkasaurus
how about: for file in CTG_TMP* ; do ...
how about:


for file in CTG_TMP* ; do

sed -e "s/^/$dt /" $file > $file.log

done


'course, if you run it twice, you'll get "log.log's" but you could probably figure out how to fix...
2,067
Posted By quirkasaurus
ls -l | nawk '$5 == 15' grep could give...
ls -l | nawk '$5 == 15'


grep could give false positives.
1,900
Posted By quirkasaurus
how about trying this: ALIAS gscn { MSG...
how about trying this:


ALIAS gscn {
MSG gscn Test1
TIMER 5 MSG gscn Test2
TIMER 10 MSG gscn Test3
TIMER 15 MSG gscn Test4
TIMER 20 MSG gscn Test5
}
Showing results 1 to 25 of 471

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