10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
I have a file with the following format:
...
text1 num num P
# 2014--2-28-22---6 33.76--38.4173---21.9403----0.08-0.00--0.01--0.01--0.46----------0
text1 num num P
text 2 num num S
text 3 num num P
...
(where "-"=space, "spaces" cannot... (4 Replies)
Discussion started by: phaethon
4 Replies
2. Shell Programming and Scripting
Hi All,
I have a data file (myfile.txt) as below:
- A H C
- A HHH F
- AAA HH I
The importan point is that the width between the columns are not fixed and the column seperator is space.
I wish to change the value of 4th column using awk only when $3 = HH. I can... (4 Replies)
Discussion started by: angshuman
4 Replies
3. UNIX for Dummies Questions & Answers
Hi guys,
Good day to all and Happy New Year!!! Cheers!!!
I hope anyone could help/suggest me on hot to create a script that will monitor the directory where files are being dumped. I have a script in CRON that runs everyday and collect for logs with a filename of Output_$(date... (3 Replies)
Discussion started by: rymnd_12345
3 Replies
4. Shell Programming and Scripting
# Print list of word frequencies
{
$0 = tolower($0)
for (i = 1; i <= NF; i++)
counter++
}
END {
for (word in counter)
printf "%s\t%d\n",word, counter
}
I have this simple awk code from awk user guide to count the frequency of word. Now consider the... (7 Replies)
Discussion started by: ajacobs365
7 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a series of BASH shell scripts that I would like to package and distribute. I would like to make it as easy as possible users to install the package on their system.
The only tasks that need to be performed for installation are 1) unzip the package, 2) modify the user's ~/.bashrc... (1 Reply)
Discussion started by: msb65
1 Replies
6. Shell Programming and Scripting
Hi,
I have a C code which builds and works fine on 32bit linux machine.
Now i want to convert that code to build and run on 64 bit linux machine. I dont want to maintain two separate sources for 32 and 64 bit build. Same source should get build on 32 as well as 64 bit machine (when a... (2 Replies)
Discussion started by: bhushan123
2 Replies
7. Shell Programming and Scripting
hi ,
While working on perl, have to write a continuous log file which I can monitor. I tried like,
open (LOG,'>'.$log.'/Report_'.$todaysdate.'.log') or die("Unable to create the log file");
print LOG "\nDate : ".`date`;
But when I ran the script in backend and monitor log, it... (1 Reply)
Discussion started by: Deei
1 Replies
8. UNIX for Dummies Questions & Answers
Hi there. i'm new user at here
I need help for this. I need to write a script that maintains a database of cryptographic checksums. In other words, I need this script to check the files checksum whether the files has been modified or not. But i got no idea where to start. Hope anyone here can... (8 Replies)
Discussion started by: hihihehe
8 Replies
9. Shell Programming and Scripting
Hi Folks,
I have a log file that keeps the information pn the date and time a specific transaction is firedup. I found that the log file keeps growing and I intend to limit the entry to the log file to 30 days.
Log file name is transaction.log, here is the content:
120802_23:47:37 ... (3 Replies)
Discussion started by: odogbolu98
3 Replies
10. UNIX for Dummies Questions & Answers
I need to either create or use a current directory to provide a path for a windows file, how do I do that?
kimj (4 Replies)
Discussion started by: kimjones142001
4 Replies