10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am having problem while redirecting output to a file where as on console output is proper.
for dir in */; do printf "%s, " "$dir"; ls -m "$dir"; echo; done > output.txt
Output of above command is coming in single line but when i am redirecting output to a file, single line i... (10 Replies)
Discussion started by: Manoj Rajput
10 Replies
2. Shell Programming and Scripting
I cannot figure out what is wrong.... I have 3 files with IP addresses:
file1 134.123.3.236
file2 134.123.3.235
file3 134.123.5.237
I type "prob1 Oops x2x3x4". Then my code creates file with name Oops and first line x2x3x4. Moreover, my code generate IP and it gives to file Oops as a second... (8 Replies)
Discussion started by: Manu1234567
8 Replies
3. Shell Programming and Scripting
Hello,
This may be a simple one, but i can't see what the issue is.
When i run the script via CLI, then i get the correct output via the if statement, but when i run via CRON i get the wrong statement.
echo " Checking Job Status" >> $DIR/Bpimagecleanup_$DATE... (3 Replies)
Discussion started by: Junes
3 Replies
4. UNIX for Dummies Questions & Answers
The block size in my home directory is showed wrong when I use "quota" command. It shows I use 1.2 gb ( about 1200000) while the real size in my directory which I use "du" command is 96 MB
I really confused. (0 Replies)
Discussion started by: thsecmaniac
0 Replies
5. Shell Programming and Scripting
Hey guys I'm new to unix and need help printing files in a specified directory according to size in bytes as well as files with equal bites in alphabetical order
the part i have done so far prints out all files in the directory as well as setting a time limit in which they have been modified
... (2 Replies)
Discussion started by: wessy
2 Replies
6. Shell Programming and Scripting
Hi guys -
I am trying a small script to tell me if there is a file that exists less than 1k. It should report ERROR, otherwise the check is good.
I wrote this script down, however it never runs in the if/then statement. It always returns the echo ERROR.
MYSIZE=$(find /home/student/dir1... (8 Replies)
Discussion started by: DallasT
8 Replies
7. Shell Programming and Scripting
Good morning! Im trying to write and learn at the same time a simple script. fTHe script should tell me if a number is odd or even/
#!/usr/bin/perl
$num = 10;
$string1 = "This number is odd";
$string2 = "This number is even";
if ($num /= 2) {
print "$string1\n";
}else{
... (3 Replies)
Discussion started by: bigben1220
3 Replies
8. Shell Programming and Scripting
how to make a line BLINKING in output and also how to increase font size in output
suppose in run a.sh script
inside echo "hello world "
i want that this should blink in the output and also
the font size of hello world should be big ..
could you please help me out in this (3 Replies)
Discussion started by: mail2sant
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
Can some please tell me how to change the font size when I print a document from SCO Unixware 7.1? :confused:
The fonts are showing up too big when printing and part of the text is cut off on the edges of the documet...
Any help is appreciated.
Thanks (6 Replies)
Discussion started by: George26
6 Replies
10. Solaris
hi all ,
i was just wondering if i can specify the font size when i am printing from solaris .
i am using solaris 9 and hp laserjet 1230 .
i dont want to change the global variable for the printer driver .
i just want to print a file with small font and the others with normal fonts .
... (1 Reply)
Discussion started by: ppass
1 Replies