10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi---Is there's way can write small shell script or perl script open "abc.txt" file and create new "new_abc.txt" file with format output below? Thanks
cat abc.txt
###########################Readme###############################
Contained with this README.TXT file are all of the
file... (7 Replies)
Discussion started by: dotran
7 Replies
2. Shell Programming and Scripting
I have a shell script which creates a CSV files. there are 3 fields, field1, field2 and comp. I will generates the values for field1 and field2 and Want to compare both. If field1>filed2 then comp should be success written in green in CSV file, else it should fail in red color. How can I change the... (5 Replies)
Discussion started by: sauravrout
5 Replies
3. Shell Programming and Scripting
Plz help me
To display date in the mm/dd/yyyy. Eg. if date is 28-09-2012 the output of the shell script should be date 09/28/2012. (1 Reply)
Discussion started by: shivasaini
1 Replies
4. Shell Programming and Scripting
How can i frame current date & time in the xml standard dateTime format in shell script
2011-10-18T12:00:00.000000
I got up to the date format using the below code
date '+%Y'-'%m'-'%d'T
---------- Post updated at 09:10 AM ---------- Previous update was at 08:53 AM ----------
... (6 Replies)
Discussion started by: vel4ever
6 Replies
5. Shell Programming and Scripting
sorry but need help
http://i.investopedia.com/inv/articles/site/CalculationEMA.gif
trying to achieve ema
in script I have this syntax which errors
ema=` ;
the 0.153846154 ='s Smoothing Factor
really appreciate help (3 Replies)
Discussion started by: harte
3 Replies
6. UNIX for Advanced & Expert Users
Hi all,
I have written a shell script to search a specified directory (e.g. /home/user) for a list of specific words (shown as ${TMPDIR}/wordlist below). The script works well enough, but I was wondering if there was a way to display the line number that the word is found on?
Thanks!
cat... (1 Reply)
Discussion started by: tmcmurtr
1 Replies
7. Solaris
my question "format file using shell script " is not a homework. bad guess.
my actual file is much more complex. the requirement is to format the file before i can read it from SAP.
so i'd appreciate if any inputs can be provide.
i've tried most of the commands like tr and sed and nawk, no... (2 Replies)
Discussion started by: balajim
2 Replies
8. Solaris
Hi All,
I am new to shell scripts. I have a requirement to change the format of a file. Here is the original file:
#student layout
student_name
student_class
student_subject
david
5
chemistry
paul
4
physics
steve
6
mathematics
This is the format i need:
k1,david,5,chemistry... (1 Reply)
Discussion started by: balajim
1 Replies
9. Shell Programming and Scripting
how would i write a shell script to count number of one-line comments in a c++ file.
if anyone knows any good books or internet sites for shell script would be much apprecitied
thanks (2 Replies)
Discussion started by: deadleg
2 Replies
10. Shell Programming and Scripting
Hi all,
I have a data file and need to load the data into tables in a database. The problem is I cannot use a while loop with each line as the data is free text and has all kinds of weird characters including carriage returns and new line characters.
Each column is separated by ~^~ and a new line... (2 Replies)
Discussion started by: sam_78_nyc
2 Replies