10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
Current working script is :
#
# my_script BEGIN
#
function a_function {
FIRST_PARAM="$1"
DO_SOMETHING "$FIRST_PARAM"
}
export -f a_function
START_HERE="/home/some_user/Documents"
find $START_HERE" -exec bash -c 'a_function "$0" ' {} \; (5 Replies)
Discussion started by: jcdole
5 Replies
2. Shell Programming and Scripting
In the attached file I am trying to use awk to extract multiple values and create the tab-delimited desired output.
In the output R_Index is a the sequential # and Pre_Enrichment is defaulted to ..
I can extract from the values to the side of the keywords, but most are above and I can not... (2 Replies)
Discussion started by: cmccabe
2 Replies
3. AIX
Can anyone help me the detailed procedure and commands to follow to add additional swap on aix server .
My system shows following as of now ,
#lsattr -E -l sys0 -a realmem
realmem 13893632 Amount of usable physical memory in Kbytes False
#pstat -s
PAGE SPACE:
USED PAGES FREE... (7 Replies)
Discussion started by: gull05
7 Replies
4. Shell Programming and Scripting
Hi,
I need to number the lines in my text file. I know how to do this with standard numbering (1,2,3,4, etc) but I need to count in multiples of 5, beginning 0,5,10,15...
example existing file:
abcd
efg
hijklm
nopqrs
desired output
0 abcd
5 efg
10 hijklm
15 ... (11 Replies)
Discussion started by: livbaddeley
11 Replies
5. Shell Programming and Scripting
Thanks for allwoing me to discuss in this forum
GIVEN BELOW A simple shell script which will ask for the user to input a PC name and it will produce the output in CSV with the PC name
#! /bin/bash
read -p "enter the PC name :" pc
#checking for netstat report
netstat -pant |sed '1,2d'... (1 Reply)
Discussion started by: ayyappancheta
1 Replies
6. UNIX for Dummies Questions & Answers
How do I use bash to add all the floating point numbers saved in a file like this?
490.47
244.61
263.07
131.59
246.81
115.20 (3 Replies)
Discussion started by: locoroco
3 Replies
7. Shell Programming and Scripting
Hello,
How to add numbers that are read from a file /tmp/test
The content of the file look like
1234
234
432
1235
123
I read the file content in a for loop
f=/tmp/test
for i in `cat $f`
do
.
.
done
Santhosh (11 Replies)
Discussion started by: mvsanthosh
11 Replies
8. AIX
Hello,
How to add/remove additional DNS and IP to AIX ?
I wanted to add 3 more new DNS and IP addresses to existing AIX 5.2. (1 Reply)
Discussion started by: balareddy
1 Replies
9. Shell Programming and Scripting
Hi all
How to add line numbers in text file..
ex
abcd
cdef
result
1. abcd
2. cdef
thx in advance (4 Replies)
Discussion started by: suryanarayana
4 Replies
10. Shell Programming and Scripting
Hello, I am (trying) to write a script that will check to see how many users are logged on to my machine, and if that number is more than 60 I need to kill off all the oldest sessions that are over 60. So far I have been able to check how many users are on and now I am at the part where I have to... (3 Replies)
Discussion started by: raidzero
3 Replies