10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I'm new with sed, and i am really confused with slashes, backslashes, parentheses, I've tried reading some beginner's guide, but still trouble fixing this problem, do you have any tips where or what to read to learn more about sed? can you also help me with my problem?
Note: I was tasked to use... (4 Replies)
Discussion started by: akopocpoypoy
4 Replies
2. Shell Programming and Scripting
Hi All,
Could you please help me on this requirement.
File data:
A
A
A
B
B
B
i need the output like
A1
A2
A3
B1 (3 Replies)
Discussion started by: bmk123
3 Replies
3. Shell Programming and Scripting
Hi Experts,
i have date as inputdate=01/01/2013,how to get the previous date from this date and also first day's date of the month.
example:
inputdate=01/06/2013
previousdate=31/05/2013
firstdate=01/05/2013
how can i get solution to this. my unix is not supporting GNU Dates
... (0 Replies)
Discussion started by: learner24
0 Replies
4. Shell Programming and Scripting
Dear all
I have a dataset (in text format,delimited by tab) which have 100 variables (say, var0-var99) and more than 100,000 observations. I want to do the following:
1. for variable var0-var49, I want to add "00" in front of each data (for example, "1" would become "001")
2. for variable... (8 Replies)
Discussion started by: littlewenwen
8 Replies
5. Shell Programming and Scripting
I have a comma separated file containing numbers, I would like to read the file and divide each number by 1024 and create an output file.
Input file :
50312.00,3434.05, ,3433.34,124344.00,434343.00, , ,
Output file:
49.13,3.35,3.35,0,12.05,424.16,0,0
Please click this link: How to... (2 Replies)
Discussion started by: inditopgun
2 Replies
6. Shell Programming and Scripting
Hi
I have a case where I am grabbing patterns and subsequent lines using
sed -n -e '/regex/{$!N;p;}'
This returns just the regex line when it is the last line of my file.
Now I may have even number of lines in some cases (regex never at end) and odd in very rare cases.
If the line... (6 Replies)
Discussion started by: jamie_123
6 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I want to write a script that does something like this:
I have a file, in which in every line, there is a string of words, and followed by some space, a number.
Now, I want to identify the line, which has the largest startFace number (say m=8118), take that number and add it to the... (2 Replies)
Discussion started by: super_commando
2 Replies
8. UNIX for Advanced & Expert Users
Hi All,
I am using a bash shell and want to the following thing.
A process sends the following string to my script
BACKUP_FAIL_REASON="Failed - Application Dump CDMACA-0:grep: /opt/nortel/ca/data/1245184/sd00/image1/S110907070708HIS... (4 Replies)
Discussion started by: Pkumar Sachin
4 Replies
9. Shell Programming and Scripting
Hi all,
I have a script that requires time comparisons and sending out an email alert only if the specified interval has been completed. The script runs in Cron tab every 5 mins.
For ex: If the interval is set to 2 hrs (Dynamic & varies )
My script should execute and if it finds any error... (1 Reply)
Discussion started by: praseecg
1 Replies
10. Shell Programming and Scripting
Reuirement:
I have a set of files ina diectory which has the name in format "WWW-YYYYmmDD"
like, WWW-20070226. for 26th FEB 2007.
Now I need to write a shell script which should move the files to directory named "old" in the same directory if date attached to file is 90 days prior to today's... (1 Reply)
Discussion started by: jnanesh.b
1 Replies