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. Shell Programming and Scripting
Hello guys
I am about to write a script that is based on "The Linux Administration Handbook" The exercise is as follows:
Write a shell script to help monitor the health of the /etc/passwd file.
Find entries that have UID0
Find entries that have no password (needs /etc/shadow)
Find any... (4 Replies)
Discussion started by: Learn4Life
4 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hello guys
I am about to write a script that is based on "The Linux Administration Handbook" The exercise is... (6 Replies)
Discussion started by: Learn4Life
6 Replies
5. 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
6. UNIX for Dummies Questions & Answers
Hi all,
Just writing to ask if any one can advise on what tools to use best for maintaining your scripts ... preferably free/open source and portable if there is one, that is, one that can be placed and run on a USB stick ...
At the moment, am having them in directories and files and no... (2 Replies)
Discussion started by: newbie_01
2 Replies
7. 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
8. UNIX for Dummies Questions & Answers
Hi all,
I have this scenario where:-
The file that I want to save its name into array df is my.08120323.trx which is located in the dir as below:
$ pwd
/u01/abc/def/SRC_datafiles
$ ls *trx
my.08120323.trx
$ df=*"trx" ##keeping the filename... (1 Reply)
Discussion started by: luna_soleil
1 Replies
9. Shell Programming and Scripting
Hi all,
I have this scenario where:-
The file that I want to save its name into array df is my.08120323.trx which is located in the dir as below:
$ pwd
/u01/abc/def/SRC_datafiles
$ ls *trx
my.08120323.trx
$ df=*"trx" ##keeping the filename my.08120323.trx into df
$... (2 Replies)
Discussion started by: luna_soleil
2 Replies
10. 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