10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have an input file like below,
6994 1214 ... (3 Replies)
Discussion started by: Indra2011
2. Shell Programming and Scripting
I'm trying to take out strings from log files and add them to a csv.
For example, in the directory now, there are 2 log files. I get the following results:
sed -e '/custodian/b' -e '/packaged by/b' -e '/package name/b' -e '/Total Data (MB) Read/b' -e '/Begin Time/b' -e d *
packaged by =... (10 Replies)
Discussion started by: chipperuga
3. Shell Programming and Scripting
please help me to modify my script
while read line
echo "$line" >>/tmp/result && mysql -ss -e "use $line; select count(*) from users where type='admin' and deleted = 0;" > /tmp/result;
done < /tmp/db_data
1... (2 Replies)
Discussion started by: unimaxlin
4. Shell Programming and Scripting
We have a business need to modify the /etc/passwd file every time a new user gets added, because the user ID begins with a zero. When you create the new user in smit, even if you put the leading zero in, it does not retain it when the entry is added.
That being said, I need to create a script... (11 Replies)
Discussion started by: mshilling
The script get a csv file with 2 colls for example:
the script supose to put the number in the Description of the user in this case UNIX or Microsoft
the error i get is
does not exist.OR: UNIX
does not exist.OR: Microsoft
but the users exist so i do not... (7 Replies)
Discussion started by: shatztal
6. Shell Programming and Scripting
I am looking for script to modify /etc/shadow.
1-)User enters username
2-)The line of that user is found in /etc/shadow and *LK* is added infront of the second field in /etc/shadow.
How can I do this?
Thanks (7 Replies)
Discussion started by: tjay83
7. Shell Programming and Scripting
I have a script which connect to ATM's and pull two files from the ATM.
The which i try to pull is like
First 7 digit consist of year montn and date as well
After todays execution i want to change the date to next date
I add few lines in the script but it is not... (6 Replies)
Discussion started by: Renjesh
8. Shell Programming and Scripting
I have this code, and i want work with a ls -shalR output in .txt
What i need read to do this??
# Allrights- A perl tool for making backups of file permissions
# Copyright (C) 2005 Norbert Klein <email@example.com>
# This program is free... (1 Reply)
Discussion started by: joangopan
9. UNIX for Dummies Questions & Answers
I want to add one line to the end of my crontab using a script.
I have tried piping in the editor commands, but I can't get it to work.
crontab -e user << EX
This is the text I want to add.
This doesn't work. Is there an easier way to do this? (2 Replies)
Discussion started by: johnmsucpe
10. Shell Programming and Scripting
We are running a quiz and the data collected from the quiz is submitted to the database. My requirement is to write a shell script to get these submitted records.
I should be able to run this shell script at any time and the records it returns should be the ones submitted after the script was... (5 Replies)
Discussion started by: sehgalniraj