10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am running a script which sends an output as an email; I am having issues with the spacing being not uniform in the message. Snippet of the code and email message below:
if ] then echo "$Hostname\tMISSING\tHMCBackup" >> $BackupMsg
else if ] then echo... (12 Replies)
Discussion started by: hasn318
12 Replies
2. UNIX for Dummies Questions & Answers
here is my code and output, i just want to display it clearly to the users. how can I fix the spacing or put some headers like NAME, DEV id, Size, Meta
code:
symdg show $INS-${SNAP} | egrep "D-" | awk '{print $1,$3,$NF,$5}'
output:
D-arch 23C2 983040 (M)
D-db 0704 245760 (M)
D-undo 07DB... (12 Replies)
Discussion started by: prodigy06
12 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to combine text files without a space. So if i use the paste command
paste file1 file2 file3 > file4
the new file created has spacing between the contents of the once individual files. Is there some trick I can do with a delimiter that removes the spaces.. like paste -d'' or... (1 Reply)
Discussion started by: steveinthebox
1 Replies
4. UNIX for Dummies Questions & Answers
while IFS="" read r; do
printf "XXX\t%s\n" "$r"
done < test1.txt > test.txt
The issue is, XXX wud be a dummy column/row added to the file..But i want this XXX column to be a separated as a TAB Delimiter
it should be something like
XXX 1
XXX 2 (3 Replies)
Discussion started by: saggiboy10
3 Replies
5. Shell Programming and Scripting
Hi
I have a csv file in below format
First Line=1
Second Line=2
And the third Line=3
Now comes the fourth Line=4
I want to insert spaces so that the output would be
First Line=1
Second Line=2
And the third Line=3
Now comes the fourth Line=4
Can anyone help me do... (10 Replies)
Discussion started by: msivask
10 Replies
6. 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:
I have to join 3 files numerically according to ID(first column) with no comments. In the end i'll be something... (0 Replies)
Discussion started by: bigubosu
0 Replies
7. Shell Programming and Scripting
Hi guys, I have this little code:
for directory in / $(echo $path | tr '/' ' ' )
do
cd $directory
echo "$(ls -ld | cut -c2-10 | sed 's/.\{3\}/& /' | sed 's/.\{7\}/& /' |
sed 's/.\{1\}/& /g')" " $directory"
done
The output of this will be showing the permissions with spaces so it will... (2 Replies)
Discussion started by: darkhider
2 Replies
8. Shell Programming and Scripting
lines in:
4,355,384 20,762,557 16,407,173 TOTAL
14,470,261 27,190,250 12,719,989 TOTAL
18,825,645 47,952,807 29,127,162 TOTAL
PERL script:
open(TOTAL,"grepTOTAL /otl/ds_metric/data_files/modem_times|");
push(@total,<TOTAL>);... (3 Replies)
Discussion started by: Jamison
3 Replies
9. Shell Programming and Scripting
Is there a way to adjust spacing of a line using k shell?
e.g I have a file below
$ cat file1
AAA BBB CCC
A B C
AAAA BB CC
I want each word to be adjusted with spaces to have 10 character length like below:
AAA BBB CCC
A B C
AAAA BB CC
Any... (4 Replies)
Discussion started by: stevefox
4 Replies
10. Shell Programming and Scripting
I have a script that has a counter in it, the output from the script puts the values in columns, and when the values are greater than 9 it moves the rest of the row over, hence displacing the columns. Is their something I can do to make these values fit in their respective column? I tried typing an... (1 Reply)
Discussion started by: wxornot
1 Replies
asmixer(1) General Commands Manual asmixer(1)
NAME
asmixer - the AfterStep Mixer
SYNOPSIS
asmixer [ -help ] [ -g geometry ] [ -d device ] [ -1 control ] [ -2 control ] [ -3 control ] [ -t title ] [ -v rate ] [ -w withdrawn ]
DESCRIPTION
asmixer is a nice little application for controlling the volume of various sound outputs through three slider bars. It can be swallowed
into Afterstep's Wharf for ease of use.
OPTIONS
-h -help --help
SOS, 911, etc.
-g [+|-]x[+|-]y
standard format for where you want to exile asmixer
-d device
the mixer device to harass
-1 -2 -3 control
this binds a slider to a specific sound device:
VOLUME, BASS, TREBLE, SYNTH, PCM, SPEAKER, LINE,
MIC, CD, IMIX, ALPTPCM, RECLEV, IGAIN, OGAIN,
LINE1, LINE2, LINE3
-w
WindowMaker withdrawn window support.
-v volume
the volume (1-100) to set the first slider to
DEFAULTS
-d /dev/mixer -1 VOLUME -2 CD -3 PCM -t asmixer
INVOCATION
asmixer can be called from one of many ways. The most common invocation is Afterstep's .steprc:
*Wharf "mixer" nil Swallow "asmixer" asmixer -g -1-1 &
This line will cause asmixer to be swallowed into Wharf, which 9 out of 10 dentists agree is cool. You will then be able to slide to your
hearts content in perfect Wharf comfort!
Another way to call asmixer is from the command line:
[ximenes@leo]$ asmixer -d /dev/mixer -t asmixer -v 95 &
This will pop up a little window with asmixer helplessly imprisoned inside. Don't worry, it likes it.
SEE ALSO
afterstep(1), Wharf(1)
COPYRIGHTS
Copyright 1997, Rob Malda <malda@cs.hope.edu>. No guarantees or warranties or anything are provided or implied in any way whatsoever. Use
this program at your own risk. Permission to use this program for any purpose is given, as long as the copyright is kept intact.
CREDITS
Rob Malda <malde@cs.hope.edu> -- Ye Olde Application Ximenes Zalteca <ximenes@null.net> -- Page O' Fun
3rd Berkeley Distribution 17 May 1997 asmixer(1)