10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm using getopts to process command line args in a Bash script. The code looks like this:
while getopts ":cfmvhs:t:" option; do
case $option in
c) operationMode="CHECK"
;;
f) operationMode="FAST"
;;
m) ... (6 Replies)
Discussion started by: gencon
6 Replies
2. Shell Programming and Scripting
Hi,
I have a file whihc looks like
file_1 100 200
file_2 200 300
file_4 400 500
as the file_3 is missing so I want to replace it by
file_3 0 0
the final output would look like
file_1 100 200
file_2 200 300
file_3 0 0
file_4 400 500
Any help is highly appreciated.
Regards, (1 Reply)
Discussion started by: begin_2013
1 Replies
3. Shell Programming and Scripting
Ok, Lets see if I can explain this
We have a script that pulls information from multiple files and outputs it, however I only need 2 Columns (of 11) from it
right now I run the script like this:
tkxtrn | awk '{print $5" "" "$9}'
This gives me column 5 and 9, the only two I care for
... (5 Replies)
Discussion started by: shadowkraze
5 Replies
4. Shell Programming and Scripting
hi
i am sending an email from unix to windows platform and using uuencode to attach the plain text files (.txt). But when i read the attached file in notepad the linebreaks are gone.
uuencode samplefile.txt samplefile.txt | mail -s "test email" <mailid.com>
if i copy paste the... (6 Replies)
Discussion started by: midhun19
6 Replies
5. Shell Programming and Scripting
Hi,
I have below script
PROJECT_NAME=UDL/UDL_Weekly
sub= echo ${PROJECT_NAME}|cut -d "/" -f2
cat pr.sh|mail -s "`hostname`: $sub failed" sonu.pal@xyz.com
While running the script I am receiving the subject line in mail as " podetlsapp01: failed' instead of " podetlsapp01: ... (1 Reply)
Discussion started by: sonu_pal
1 Replies
6. Shell Programming and Scripting
Hi Guys
When I run the below command
ssh -o 'PasswordAuthentication yes' -o 'PreferredAuthentications publickey' -i $HOME/.ssh/id_dsa Server_Name
I found the below error
ommand-line line 0: Missing yes/no argument
Kindly help me to sort out
Double post, continued... (0 Replies)
Discussion started by: Pratik4891
0 Replies
7. Shell Programming and Scripting
Hi All,
I wanted to check out a missing new line character from last line on Unix.
If file is having newline character at the end of last line then it should show as "\n" else will display the last character whatever it is.
OR
If file is having newline character at end of last line... (8 Replies)
Discussion started by: gr8_usk
8 Replies
8. Shell Programming and Scripting
I have a file that contains 87 lines, each with a set of coordinates (x & y). This file looks like:
1 200.3 -0.3
2 201.7 -0.32
...
87 200.2 -0.314
I have another file which contains data that was taken at certain of these 87 positions. i.e.:
37 125
42 175
86 142
where the first... (1 Reply)
Discussion started by: jackiev
1 Replies
9. Shell Programming and Scripting
Hi,
My awk program is failing. I figured out using command
od -c filename
that the last line of the file doesnt end with a new line character.
Mine is an automated process because of this data is missing.
How do i handle this?
I want to append new line character at the end of last... (2 Replies)
Discussion started by: pinnacle
2 Replies
10. Shell Programming and Scripting
I've got a file - for example:
A B C D E
21134570 1 21573 XXXX XXXX
21134570 1 21574 XXXX XXXX
21134570 1 21575 XXXX XXXX
21134577 1 21569 XXXX XXXX
21134571 1 21566 XXXX XXXX
21134566 1 ... (4 Replies)
Discussion started by: Cailet
4 Replies