Search Results

Search: Posts Made By: Sharma331
33,522
Posted By Corona688
You are putting backticks where they have no...
You are putting backticks where they have no purpose. You don't need backticks if you're putting the output through a pipe.

Try (uuencode $file1 $file1 ; uuencode $file2 $file2) | mailx -m -s...
2,701
Posted By jim mcnamara
Because months vary in length 28,29,39, and 31...
Because months vary in length 28,29,39, and 31 days finding the previous month means that there have to be some assumptions made by your accounting folks

for example:

Define: last month = "30...
2,701
Posted By junior-helper
Sharma331! I just finished a script tailored for...
Sharma331! I just finished a script tailored for the date format required in post #1 ((m)m-(d)d-yyyy)and in the meantime you posted a complete different date format?! Please check if the below code...
1,961
Posted By Akshay Hegde
sed...
sed 's/\(.\{3\}\)\([0-9]\{1,2\}\)\([0-9]\{4\}\)\([0-9]\{1,2\}:[0-9]\{1,2\}\)\(.\{2\}\)\(.*\)/\1 \2 \3 \4 \5 \6/g' file
I get this
jan 16 2014 13:17 PM abc def ghi
jan 16 2014 3:17 PM abc def ghi...
1,961
Posted By Akshay Hegde
okay use sed as Don suggusted sed...
okay use sed as Don suggusted


sed 's/\(.\{3\}\)\([0-9]\{1,2\}\)\([0-9]\{4\}\)\([0-9]\{1,2\}:[0-9]\{1,2\}\)\(.\{2\}\)/\1 \2 \3 \4 \5/g' file

---------- Post updated at 04:00 PM ----------...
1,961
Posted By Akshay Hegde
Try perl if you have perl -pe '$_ = join ("...
Try perl if you have

perl -pe '$_ = join (" ", $_ =~ m/(.{3})(\d{1,2})(\d{4})(\d{1,2}:\d{1,2})(.{2})/)."\n"' file
13,016
Posted By Michael Stora
My virtual server at work pages me every time it...
My virtual server at work pages me every time it "reboots". My home server pages me every time my ISP changes my IP address (rare these days but used to happen a couple times a week).

Just send...
13,016
Posted By mph
Here's something you could try. ...
Here's something you could try.


#!/bin/ksh
#
# Pageme (05/20/00)
# Page me with a short message
#
if [ -z "$1" ]
then
printf "Enter Message (128 Chars Max.): "
read message
else
...
2,849
Posted By SriniShoo
Change the count variable count=$(cat $newTemp2...
Change the count variable
count=$(cat $newTemp2 | tr -s "\t" " ")
3,156
Posted By CarloM
if [ $count -le $thresholdValue ] The spaces...
if [ $count -le $thresholdValue ]
The spaces are important.
3,156
Posted By Souvik Patra
try not to copy paste the if statement. Please...
try not to copy paste the if statement. Please write it down manually using vi editor. The syntax should be if [ condition ];

space after '[' and before ']'
152,717
Posted By LANkrypt0
Same as Perderabo's but a one liner sed '$d'...
Same as Perderabo's but a one liner

sed '$d' < file1 > file2 ; mv file2 file1
6,558
Posted By vbe
Maybe saying more about your system (OS + version...
Maybe saying more about your system (OS + version and shell you use) may help us understand...
ksh standard syntax for giving values to a variable which comes from some sort of command execution is:...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 03:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy