10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
At the moment, using Notepad++ to do a search and replace, manually section by section which is real painful. Yeah, so copying each section of the line of text and putting into a file and then search and replace, need at least 3-operations in Notepad++.
Here's hoping I will be able to... (1 Reply)
Discussion started by: newbie_01
1 Replies
2. Shell Programming and Scripting
Mails from Sendmail are ignoring line endings, when I try to send email with attachment. I have tried to specify the font in the html but line endings are still ignored. I also tried unix2dos, still no luck.
#!/usr/bin/ksh
###Send Email
MAILTO=`cat mail2.list | tr -s '\n' ','`
SUBJECT="bla bla... (3 Replies)
Discussion started by: aydj
3 Replies
3. UNIX for Advanced & Expert Users
Sorry if this is in the wrong area. I am not sure where to put this question.
HD manufacturers usually use the 1000 scale for measuring their HD capacity instead of 1024 which is way more common with computers. What would 750 GB on the 1000 scale convert to on the 1024 scale and how would you... (1 Reply)
Discussion started by: cokedude
1 Replies
4. UNIX for Advanced & Expert Users
I was reading this and thought I could put this in my vimrc and it would convert the line endings to unix. Am I doing something wrong or am I missing something?
set ff=unixManaging/Munging Line-Endings with Vi/Vim | Jeet Sukumaran
I used this command and it confirms that my global option is... (2 Replies)
Discussion started by: cokedude
2 Replies
5. UNIX for Dummies Questions & Answers
Hello all. Hope you can help. I am looking for a complete command to search for a file named HOSPCHK. The file could be listed with numbers after it like it could be listed with letters after it or a combination of both or just by it self. The other catch is the file that I want to look for... (27 Replies)
Discussion started by: azapp51
27 Replies
6. UNIX for Advanced & Expert Users
When you are dealing with ASCII files it easy to check on line endings type. You can just use the file command. You are not always lucky enough to be dealing with ASCII files. So in the cases that you don't have ASCII files how can you check what type of line endings you have? Please list all... (5 Replies)
Discussion started by: cokedude
5 Replies
7. Shell Programming and Scripting
Hello
I have created the following script, which is designed to manipulate a text document:
#!/bin/sh
# Get 3 lines, (last of which is "Quantity"); adjust order; put all three on one line with tabs.
FILENAME=~/Desktop/email.txt
LIST=$(grep -B2 "Quantity" ${FILENAME} |awk 'BEGIN { FS = "\n"; RS... (6 Replies)
Discussion started by: benwiggy
6 Replies
8. Shell Programming and Scripting
I have over 800 scripts (Korn and Perl) wrote on a Unix platform (Solaris) that I need to covert to a Linux platform (Redhat). All the path's and binaries need review. Are there any tools out there that would simplify or assist me with this conversion? (3 Replies)
Discussion started by: soupbone38
3 Replies
9. Shell Programming and Scripting
Is there a perl date conversion that will convert this type of date:
2008/100:01:56:10.000
to this type of date:
2008 04 09 01 56 10 000
I am using this right now:
sub jd2date
{
$space=" ";
$zero="0";
my ($jd) = @_;
if (($jd<1) || ($jd>782028))
{
print "julian... (5 Replies)
Discussion started by: ajgwin
5 Replies
10. UNIX for Advanced & Expert Users
I have script that runs based on time variables passed in the command line. The first command argument is a timer, in seconds, of how often to execute a certain loop in the script. The second command argument is the end time of the script, in military time. Below is an example of the command line:... (1 Reply)
Discussion started by: Nysif Steve
1 Replies