Search Results

Search: Posts Made By: clx
1,360
Posted By clx
My guess is you are executing "wrapper.sh"...
My guess is you are executing "wrapper.sh" instead sourcing.


# try
. ./wrapper.sh

#instead
./wrapper.sh
2,196
Posted By clx
Possible options : - GNU Parallel -...
Possible options :

- GNU Parallel
- Running scripts simultaneously in background and implements control over them.
- Similar to above, re-design your implementation and using some functions run...
Forum: Linux 05-15-2015
1,670
Posted By clx
Try, awk '/08:21:39/,/08:30:00/ {print}' file
Try,

awk '/08:21:39/,/08:30:00/ {print}' file
2,242
Posted By clx
Have you checked printf? Search for it.
Have you checked printf? Search for it.
1,744
Posted By clx
I get 78 fields in header (taking comma as field...
I get 78 fields in header (taking comma as field seperater) and 119 in fields in second line.
Your file doesnt look proper or you have provided incomplete information.


Secondly, -F should be...
5,490
Posted By clx
$ cat db.config input1=someinput ...
$ cat db.config
input1=someinput
input2=someotherinput


$ cat myscript.sh
. db.config
echo $input1
echo $input2


$./myscript.sh
someinput
someotherinput
$
7,224
Posted By clx
Ah, I missed that point. You mentioned there is...
Ah, I missed that point. You mentioned there is no option to use those! What issues you facing?

Apart from ssh-keygen, you can use expect (http://en.wikipedia.org/wiki/Expect).
7,224
Posted By clx
Use ssh-keygen. Google or seach within the forum...
Use ssh-keygen. Google or seach within the forum for more details.
3,425
Posted By clx
Try .. sqlplus primeit/primeit@$ORACLE_SID ...
Try ..
sqlplus primeit/primeit@$ORACLE_SID

Also make sure you having the correct value for $ORACLE_SID
How do you connect from command line? Are you proving SID while connecting?
1,038
Posted By clx
Is it just one line? Or the pattern is unique? ...
Is it just one line? Or the pattern is unique?

UID="admin"
PWD="password"

sed 's/^<UID.*PWD.*/UID = '\"$UID\"' PWD = '\"$PWD\"'>/' file
5,270
Posted By clx
Hi, Welcome to the forums. There could be...
Hi,

Welcome to the forums.
There could be a few points you need to make sure.
- Script not executing at all or script not executing successfully?

If its later, most of the time its an...
1,787
Posted By clx
You didn't reply to jim's first question. "Is the...
You didn't reply to jim's first question. "Is the file being generated byyour account - i.e., the process runs under your username.?"

If yes, you need to use the correct way of implementation....
1,986
Posted By clx
Have you searched? I have got this...
Have you searched? I have got this (https://www.unix.com/shell-programming-and-scripting/118534-sendmail-attachments-2.html) at first attempt.
2,790
Posted By clx
Thanks everyone. Again, please don't get me...
Thanks everyone.
Again, please don't get me wrong, I am well aware with the tags and I am not confused with them.

My first post was only with regards to ctrl+B etc. I am now clear that its a...
3,611
Posted By clx
Welcome to the forums. Have you tried something?
Welcome to the forums. Have you tried something?
1,048
Posted By clx
Few points, - You don't need inner loop as...
Few points,

- You don't need inner loop as grep access files as parameters not string. If you want to pass string, you have to pass as STDIN.
- You seem to be using array, but it doesnt work...
875
Posted By clx
why using -l? just remove it and it will work as...
why using -l? just remove it and it will work as expected.
909
Posted By clx
You don't need comma. Also, you don't even need...
You don't need comma. Also, you don't even need the loop.

DIRS_TO_FIND="/home/ /db/ /db/backup/ /staging/ /staging/codedrops/ /db/*/db2dump/"
find "$DIRS_TO_FIND" -type f -mtime +$DAYS_OLD >>...
1,111
Posted By clx
If your field's (the ones which you want to sort...
If your field's (the ones which you want to sort on) positions and width are fixed,

sort -t "_" -nk1.6,1.7 -nk1.9,1.10 -nk7.1,7.4 file

Even if it doesn't, I think you can manipulate the above...
7,148
Posted By clx
You can see that sed is unable to understand...
You can see that sed is unable to understand where to look for replacement string as there are many "/" chars.
Good news is you can use any other character as the delimiter if your string contains...
3,749
Posted By clx
You are not appending (>>) the file but...
You are not appending (>>) the file but overwriting (>) it every time. Possibly your input file contains blank line as last line or the last line contains spaces thats why its causing the variable of...
1,439
Posted By clx
Main | tee -a sys_check.log There's always a...
Main | tee -a sys_check.log

There's always a way. start looking at the man pages as the very first task
1,669
Posted By clx
Try sed 's/.*FROM \([^ ][^ ]*\).*/\1/' file ...
Try

sed 's/.*FROM \([^ ][^ ]*\).*/\1/' file
or
awk '/FROM/ {getline;print;next}' RS=' ' file
1,095
Posted By clx
If the first field length is fixed (4 char long...
If the first field length is fixed (4 char long alphanumeric with uppercase), one way could be

sed 's/^\([A-Z0-9]\{4\}\).* *\(.*\)/\1 \2/' file

If you are not sure about the length, the awk...
14,161
Posted By clx
If want to avoid the some of the pipes, ps...
If want to avoid the some of the pipes,

ps -ef | awk '/pmon/ && !/asm/ && !/grep/ {x=$1;gsub(/.*_/,_);print x FS $0}'

I guess, the process owner would be always oracle? as its an oracle...
Showing results 1 to 25 of 191

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