10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Conversion of string into currency value..
ex1:
number_of_positions=2
input_string=345987
Output= 345,987.00
ex2:
number_of_positions=4
input_string=1345987
Output= 1,345,987.0000
Please respond as soon as possible
edit by bakunin: we will gladly respond as soon as... (15 Replies)
Discussion started by: suren.bills
15 Replies
2. Shell Programming and Scripting
Hi Folks,
I'm looking for some ideas on how to change some file names. I'm pretty sure I need to use sed or awk but they still escape me. The files I have are like:
VOD0615 NEW Blades R77307.pdf or
VOD0615_NEW_Blades_R77307.pdf
and what I want after processing is:
R77307 NEW Blades.pdf
... (5 Replies)
Discussion started by: imonkey
5 Replies
3. Shell Programming and Scripting
I have written a shell script to do some processing and have to manipulate a variable. Basically, the variable is like this --
var=set policy:set cli
My purpose is to split it into two variables based on the position of ":". To get the right end, I am doing this --
vaa1=${vaa#*:}
... (1 Reply)
Discussion started by: Dev_Sharma987
1 Replies
4. Shell Programming and Scripting
Hi everybody,
I need an urgent help with a BASH script. I have file which contains (besides the other data) the lines with the following structure identified by with keyword PCList:
<PARAMETER NAME="PCList"
TYPE="LIST_STRUCTURE"
MODEL="{,}"
... (1 Reply)
Discussion started by: sameucho
1 Replies
5. Solaris
I need the command top to output as:
Memory: 2048M real, 1499M free, 53M swap in use, 5423M swap free
on just the memory line.
Instead, I have compiled the new version of top that displays as so:
Memory: 2048M phys mem, 1499M free mem, 5476 total swap, 5423M swap free
I read... (2 Replies)
Discussion started by: adelsin
2 Replies
6. Shell Programming and Scripting
Hi guys
Firstly, I'd like to say hi and how great this forum is. I'm not new to UNIX but am relatively new to scripting. I have a personal project that I'm working on just to try and speed up my learning.
I working with a text file, well more of a logfile really. It has several columns of... (6 Replies)
Discussion started by: abcd69
6 Replies
7. Emergency UNIX and Linux Support
Hi. I haven't had to write bash scripts in a long time and have a simple task to do, but need some help:
Input:
chrY:22627291-22651542
chrY:23045932-23070172
chrY:23684890-23696359
chrY:25318610-25330083
chrY:25451096-25462570
chr10:1054847-1061799
chr10:1058606-1080131... (7 Replies)
Discussion started by: awknerd
7 Replies
8. Shell Programming and Scripting
Hi
I am new to shell scripting and i am preparing a script.
for now i am work on a sub part of it..but i am unable to make it work.
---
the test code that i am working on
--------------------------
IFS=""
Sample_eve=`psg proc_s | grep tY`
n=0
for line in $Sample_eve... (41 Replies)
Discussion started by: Anteus
41 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I need help manipulating the file below.
Here is what I needed to do.
First, I have to replace INSUPD to DELETE.
Then I need to change the content of the file around by flipping the contents in the file from the bottom to the top (start from "CMD")
How should I attack this?
Here... (2 Replies)
Discussion started by: sirrtuan
2 Replies
10. UNIX for Advanced & Expert Users
Hi Friends,
I prefer to represent my problem with example.
I have two files as below:
file1.txt
---------
abcd.....1234......XY
abcd.....1235......XX
abcd.................
abcd...231236..1111YX
abcd...241236..1112YY
abcd...241237......YY
abce.....1235......YY
file2.txt
-------
... (4 Replies)
Discussion started by: rinku11
4 Replies