10 More Discussions You Might Find Interesting
1. Programming
Hello everyone,
Since my python knowledge is limimted, I've challenged myself to learn as much as possible to help me with my carrere. I'm currently trying to convert a shell script to python, just to give myself a task. There is one section of the script that I'm having issues converting and... (2 Replies)
Discussion started by: da1
2 Replies
2. UNIX for Advanced & Expert Users
0
down vote
favorite
I have replicated glusterfs on two servers, if i create file on one server it doesnt reflect on other, if i try to heal the volume on node2 i get this error
Commit failed on node2. Please check log file for details.
glustershd.log
E 0-test-client-3: connection to... (0 Replies)
Discussion started by: davidbob
0 Replies
3. Shell Programming and Scripting
I am very new to to shell scripting and facing a problem that I can't seem to solve. I want to write a bash script that edits file1.txt and saves it as file2.txt.
This is what the files should look like:
file1:
textline1
textline2
startCopy
copyThis
endCopy
textline3
textline4
file2:
... (6 Replies)
Discussion started by: sandy90
6 Replies
4. Shell Programming and Scripting
I am trying to do the following task :
export ENV=aaa
export ENV_PATH=$(cd /apps | ls | grep $ENV)
However, it's not working. What's the way to change to directory and search some file in that directory in single command
Please help. (2 Replies)
Discussion started by: saurau
2 Replies
5. Shell Programming and Scripting
Can anyone tell me if it's possible to write a script that will repeat the same job several times but give the output a slightly different name each time (i.e. change or add a number at the end of the output file)? Here is the script I use to run a single job:
#!/bin/bash
#PBS -N job0
#PBS -l... (1 Reply)
Discussion started by: peterjb100
1 Replies
6. Shell Programming and Scripting
Hi, I have flat file with following format
Col1, Col2, Col3, Col4
---------------------------------
r1_c1, r1_c2, r1_c3, abc | def | efg
r2_c1, r2_c2, r2_c3, abcwdw | dweweef | efg | ijk
r3_c1, r3_c2, r3_c3, abaac
...........
The first three columns contain only one entry per... (3 Replies)
Discussion started by: nick2011
3 Replies
7. HP-UX
Hi,
One of our script is executing following "sort" command.
/bin/sort $delimiter $key $originalFile -o $newFile
and while executing this, we are getting the following error:
sort: A write error occurred while merging.
While reading about this I come to know this is because of... (12 Replies)
Discussion started by: manubatham20
12 Replies
8. UNIX for Dummies Questions & Answers
if we want to replicate the content of the file twice, then we can use
sed 'p' filename
In the same way, if i want to replicate the content thrice or 4 times, how we can achieve in SED?
Thanks (5 Replies)
Discussion started by: pandeesh
5 Replies
9. UNIX for Dummies Questions & Answers
Hi
If my input is
abcdefgh
ijklmnop
then
the output should be:
abcdefgh
abcdefgh
abcdefgh
abcdefgh
ijklmnop (6 Replies)
Discussion started by: pandeesh
6 Replies
10. UNIX for Dummies Questions & Answers
I'm in the process of setting up two new HP-UX 11.23 i64 servers.
On my existing server (HP-UX B.11.0) we have several users defined to have restricted sam access.
I'm having trouble finding those definitions and copying them over to the new servers. Is this possible - to just copy over the... (1 Reply)
Discussion started by: LisaS
1 Replies