10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a test file with the following format, It contains the username_date when the user was locked from the database.
$ cat lockedusers.txt
TEST1_21062016
TEST2_02122015
TEST3_01032016
TEST4_01042016
I'm writing a ksh script and faced with this difficult scenario for my... (11 Replies)
Discussion started by: humble_learner
11 Replies
2. Shell Programming and Scripting
If you have a file like this
Mike
Student:1:4
Boy
Student:3:4
Girl
:master
Then Output is:
Mike Student:1:4
Boy Student:3:4
Girl :master (7 Replies)
Discussion started by: invinzin21
7 Replies
3. UNIX for Dummies Questions & Answers
Hello
I need to pass some environment parameters to a datastage job and am getting an error when trying to send the complete concatinated variable. I have decided to parse out just the values and send as parameters but am struggling to find the best way to do this (actually I am not very... (3 Replies)
Discussion started by: LynnC
3 Replies
4. Slackware
not sure how to do it. wan't to delete it using cut and grep ince i would use it in the shell.
but how must the command be?
grep "64.233.181.103 wwwGoogle.com" /etc/hosts | cut -d
the delimeter is just a space. can you help meplease. :D (1 Reply)
Discussion started by: garfish
1 Replies
5. Shell Programming and Scripting
Hi,
I have a line QMNAME(qmgrname) STATUS(RUNNING)
Can u jus tell me how to only get the status field ? And also the value of the status whether it is running or not running.
--
Thanks (2 Replies)
Discussion started by: julie_s
2 Replies
6. UNIX for Advanced & Expert Users
File 1
<html>ta da....unique file name I want to give file=>343...</html>
<html>da ta 234 </html>
<html>pa da 542 </html>
and so on...
File 2
343
234
542
and so on, each line in File 1 one also corresponds with each line in File 2
I have tried several grep, sed, while .. read, do,... (4 Replies)
Discussion started by: web_developer
4 Replies
7. Shell Programming and Scripting
i need to cut the string in a textfile but each line has a specific way of cutting it (different lengths)
i have a for loop that gets the string line per line, then each line has to be compared:
for x in `cat tmp2.txt`; do
if; then
echo 'BAC'
elif
... (6 Replies)
Discussion started by: izuma
6 Replies
8. Shell Programming and Scripting
Aloha! I have just over 1k of users that have permissions that they shouldn't under our system. I need to parse a provided list of usernames, check their permissions file, and strip the permissions that they are not allowed to have. If upon the permissions strip they are left with no permissions,... (6 Replies)
Discussion started by: Malumake
6 Replies
9. Shell Programming and Scripting
cp4 0 0 170.217.86.10.1421 170.217.86.8.53308 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.62948 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.62949 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 ... (1 Reply)
Discussion started by: ajaya
1 Replies
10. Shell Programming and Scripting
I'm currenting trying to parse the out put of the following command.
iostat -xtc -r |grep cmdk0
which produces the output
cmdk0,0.2,0.0,1.2,0.0,0.0,0.0,39.7,0,0,0,0,0,0,0,99
I'm then trying to get the data to look like this:
rw=0.2
ws=0.0
krs=1.2
kws=0.0
wait=0.0
actv=0.0... (2 Replies)
Discussion started by: edefoe
2 Replies