Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: clx
893
Posted By clx
In that case, which column does this have info?...
In that case, which column does this have info? Please post the contents of /etc/vfstab.
790
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
712
Posted By clx
Welcome to the forums. So is this homework?...
Welcome to the forums.
So is this homework? have you started with something?
1,055
Posted By clx
you getting "permission denied" or "No such file...
you getting "permission denied" or "No such file or directory" ?
How do you invoking the script when you run manually? Is it via using shell binary like

ksh script_name.sh

If yes, you probably...
1,331
Posted By clx
How the input looks like? Is it CSV as you shown?...
How the input looks like? Is it CSV as you shown? located where? from file , string or something else?
1,663
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...
1,185
Posted By clx
It must be referenced by the iterator variable...
It must be referenced by the iterator variable FILE.
3,758
Posted By clx
It may or may not work based on the HW/SW...
It may or may not work based on the HW/SW incompatibilities. If your rpm says the similar dist / patch you can try.
1,037
Posted By clx
Try awk 'NR==FNR {a[$0]=$0;next} ($0 in a)...
Try

awk 'NR==FNR {a[$0]=$0;next} ($0 in a) {print $0 > "file_" $0}' pattern_file all_data.txt
1,222
Posted By clx
Sample data please? And welcome.
Sample data please? And welcome.
9,432
Posted By clx
Welcome to the forums. Your input string seems...
Welcome to the forums.
Your input string seems to be confusing to me. Could you please provide some sample data which is seperated by "|" and provide expected output? ALso how do you reading those...
Forum: Linux 05-15-2015
1,454
Posted By clx
Try, awk '/08:21:39/,/08:30:00/ {print}' file
Try,

awk '/08:21:39/,/08:30:00/ {print}' file
1,613
Posted By clx
Have you checked printf? Search for it.
Have you checked printf? Search for it.
1,161
Posted By clx
You can skip the further processing if the files...
You can skip the further processing if the files are "counterparts". To be clear, if the filename contains "-" (or any other check which you think would be safe).

Something like..

for f in...
845
Posted By clx
A more descriptive title would be useful. As...
A more descriptive title would be useful.
As mentioned by MadeInGermany, If you dont have GNU specific sleep you must provide only integer (without s).
2,669
Posted By clx
Welcome to the forum. You need an xml parsing...
Welcome to the forum. You need an xml parsing tool. more precisely xpath handling. You can google for it.
1,397
Posted By clx
You need a loop to read the file. Search for it.
You need a loop to read the file. Search for it.
1,458
Posted By clx
@cmccabe, Any specific reason to create a new...
@cmccabe, Any specific reason to create a new thread ? If its similar problem, please continue here (https://www.unix.com/shell-programming-and-scripting/257531-bash-search-file.html)

You have...
1,397
Posted By clx
You have used -n switch which is stopping output...
You have used -n switch which is stopping output to be displayed on the screen.

sed 's/apple/orange/' filename > newfile

If your version supports -i option then you can save the changes in the...
2,014
Posted By clx
Am I missing something here? On ftp server :...
Am I missing something here?

On ftp server :
- New "Red_bill.txt" should be over-written hopefully if permissions allowed.
- If not, you should be having the same old file (check with timestamp)...
1,462
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...
1,480
Posted By clx
If your grep version supports -o grep -oE...
If your grep version supports -o

grep -oE '^[0-9]+' file
2,937
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
$
4,287
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).
4,287
Posted By clx
Use ssh-keygen. Google or seach within the forum...
Use ssh-keygen. Google or seach within the forum for more details.
Showing results 1 to 25 of 500

 

Featured Tech Videos

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