10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
As a followup to my previous thread, I'm trying to make a complicated perl script that involves storing information from a text file into a hash, and giving the user the ability to change the information present/write the information currently inside the hash to a new file. This is the code I've... (8 Replies)
Discussion started by: Eric1
8 Replies
2. Shell Programming and Scripting
Hello,
also with the help of some great users of this forum, I have created following shell script.
MM=120
GG=5000
# get size of directory
szm=$(du -s --block-size M ./192.168.1.xxx | awk '{print int($0)}')
data=$(date --rfc-3339=seconds)
if ; then # too big delete older files
... (10 Replies)
Discussion started by: dcaccount
10 Replies
3. Shell Programming and Scripting
I have a data file example
10302|77747373|442422442|290209|244242|"234|2352"|92482892
It has about 5000 rows the same way in that field.
Needs to look like this.... I need to remove the quotes but the more difficult thing is to remove the pipe between the quotes because there is a pipe... (6 Replies)
Discussion started by: xgringo
6 Replies
4. Solaris
Hello Everybody,
I am a mid-level Linux administrator trying to get a hold of Solaris. So far, my experience has been painful.
I think it's confusing and it's just a big mess...
To be more specific, I have noticed that whenever I install a package... it never followed a specific pattern.... (4 Replies)
Discussion started by: EssenceNY
4 Replies
5. Shell Programming and Scripting
I have a text file for which i need a script which does some fancy search and replace.
Basically i want to loop through each line, if i find an occurance of certain string format then i want to carry on search on replace another line, once i replaced this line i will contine to search for the... (7 Replies)
Discussion started by: kelseyh
7 Replies
6. Shell Programming and Scripting
ok, so what i want to do is make a script that will do the following:
take out from a command in the terminal
put that output into a text file already on my computer.
the only thing is that i need to put the output in the file kinda weird: i need to take it and put each character of output... (13 Replies)
Discussion started by: twoodcc
13 Replies
7. Shell Programming and Scripting
Hey guys, I m here again with (may b) a silly query n sorry for that, I am new to UNIX n all so don't kno much @ it.
Thro' a script I am generating an output (It is a TXT file) After generating it, I get it to windows n mails it by dragging n dropping it in lotus mail new mail window.
Is there... (6 Replies)
Discussion started by: anushree.a
6 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I need help to figure out this grep. I would like to search all files in a directory for the occurrence of abc AND xyz. I started with this:
grep -i abc * | grep xyz
But this only returns lines which contain both values on the same line. So I am thinking that I need to do... (5 Replies)
Discussion started by: khearnen
5 Replies
9. Shell Programming and Scripting
Hey Guys,
I am trying to grep within a file to find and output certain parts of lines to other file(s). The output files need to have a dynamic file name based on a field in the main log.
The problem is that every line of the log is not the same, and often not even similar.
To explain... (25 Replies)
Discussion started by: sjug
25 Replies
10. Shell Programming and Scripting
Hi, people.
I was searching script tutorials/examples and found this forum, and thought to ask for help, because there seems to be many wise people here.
(Try to bare with me, I'm a Windows user, so this stuff is somewhat strange to me, OK? :rolleyes: )
Anyways, I need to create a script that... (3 Replies)
Discussion started by: Gill Bates
3 Replies