10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Good morning,
At the client location
os is CentOS. In all the terminals i.e F1, F2, F3....F10 PING command is continuously running. I tried to terminate it using CTRL C or quit but unable to stop that command in all the terminals. How to stop that? Howto find batch files which are being... (3 Replies)
Discussion started by: sureshbabu.anis
3 Replies
2. Shell Programming and Scripting
ps -e -o pcpu -o pid -o user -o args | sort -k 1 | tail -6r
%CPU PID USER COMMAND
0.3 223220 root /usr/tivoli/tsm/client/ba/bin/dsmc sched
0.2 411332 root /usr/sbin/syslogd
0.1 90962 root /usr/sbin/syncd 60
0.0 10572 root -ksh
0.0 94270 root -ksh
... (4 Replies)
Discussion started by: SkySmart
4 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
i worte a shell script which will zcat the .gz file and write it in to a tmp file and then again cat the file and convert it to Dos mode. Next step is i am greping the file to search for the particular string on the 1st line and if the string does not exits it will insert the 1st line... (1 Reply)
Discussion started by: vikatakavi
1 Replies
4. UNIX for Dummies Questions & Answers
salary_range_report()
{
echo -e ${underline}$redYellow"\nSalary Range Report\n"
tput sgr0
count_0_to_999=0
count_1000_to_2999=0
count_2000_to_5999=0
count_6000_to_9999=0
count_10000_above=0
for i in `cut -d "," -f4 $PAYROLL` #Loop Salary
do
if &&
then
let... (4 Replies)
Discussion started by: eggisbad
4 Replies
5. Shell Programming and Scripting
Hi All,
I have a script that I wrote on a bash shell, I use it to sort files from a directory into various other directories. I have an variable set, which is an array of strings, I then check each file against the array and if it is in there the script sorts it into the correct folder.
But... (5 Replies)
Discussion started by: sgtbobie
5 Replies
6. Shell Programming and Scripting
Hi,
Linux newbie here with what I'm guessing is silly questions.
My script below is working in that it correctly copies files from the backup IP (10.0.91.1) back down to the Linux server but trouble is it loops continuously.
It correctly downloads 100 files from the the IP 10.0.91.1... (1 Reply)
Discussion started by: MOWS
1 Replies
7. Shell Programming and Scripting
I am looking for suggestions on how I could possibly optimized that piece of code where most of the time is spend on this script. In a nutshell this is a script that creates an xml file(s) based on certain criteria that will be used by a movie jukebox.
Example of data:
$SORTEDTMP= it is a... (16 Replies)
Discussion started by: snappy46
16 Replies
8. Shell Programming and Scripting
Hopefully someone here can point me in the correct direction.
I'm working on a username migration and am trying to map my users ols usernames to the new ones.
Right now every user has a username of firstname.lastname i.e. john.doe
I'm trying to create a bash or python script that will take... (3 Replies)
Discussion started by: binary-ninja
3 Replies
9. Shell Programming and Scripting
Hi
I have the following script :
#!/bin/ksh
#################### Function macAddressFinder ########################
macAddressFinder()
{
`ifconfig -a > ipInterfaces`
`cat ipInterfaces`
}
#######################################################################
#
#
print... (2 Replies)
Discussion started by: presul
2 Replies
10. Shell Programming and Scripting
Hi all,
I'm anew shell user, and want to now how to do that?
i have a files that have inside few raws of names of directories, i want to read only the lins that are a dir name how to do so.
the file looks like that
####################################
# This is the list of dirs files ... (4 Replies)
Discussion started by: banjo
4 Replies