Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: clx
695
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
1,530
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,322
Posted By clx
Try, awk '/08:21:39/,/08:30:00/ {print}' file
Try,

awk '/08:21:39/,/08:30:00/ {print}' file
1,425
Posted By clx
Have you checked printf? Search for it.
Have you checked printf? Search for it.
1,370
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...
2,648
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
$
3,018
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).
3,018
Posted By clx
Use ssh-keygen. Google or seach within the forum...
Use ssh-keygen. Google or seach within the forum for more details.
2,596
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?
690
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
3,476
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,134
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,505
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,062
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...
2,626
Posted By clx
Welcome to the forums. Have you tried something?
Welcome to the forums. Have you tried something?
724
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...
671
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.
683
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 >>...
800
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...
5,931
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...
2,647
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...
765
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,128
Posted By clx
Try sed 's/.*FROM \([^ ][^ ]*\).*/\1/' file ...
Try

sed 's/.*FROM \([^ ][^ ]*\).*/\1/' file
or
awk '/FROM/ {getline;print;next}' RS=' ' file
862
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...
9,129
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

 

Featured Tech Videos

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