Search Results

Search: Posts Made By: alyex
1,837
Posted By alyex
a little hint: set a counter while printing,...
a little hint:

set a counter while printing, when it reaches 10, read a carriage return from stdin (in my code, it would be '&6' and then proceed.
3,940
Posted By alyex
sed 's/^\s*[pP][rR][iI][nN][tT]/#print/' a.txt ...
sed 's/^\s*[pP][rR][iI][nN][tT]/#print/' a.txt

here '\s' represents any blank space, tab.
1,837
Posted By alyex
========================================== >...
==========================================
> cat > a.sh
#!/bin/bash

exec 6<&0
exec < a.sh
while read line
do
echo $line
done
exec 0<&6
'ctrl-D'
>
>
> ./a.sh
#!/bin/bash
...
3,940
Posted By alyex
> cat a.txt a = "This is a print statement ...
> cat a.txt
a = "This is a print statement
print a
b = "This contains print statement"
print b
>
>
>
> sed 's/^[pP][rR][iI][nN][tT]/#print/' a.txt
a = "This is a print statement
#print a
b...
Forum: AIX 06-04-2009
18,101
Posted By alyex
What you can do in a script is as below: ...
What you can do in a script is as below:

=======================================
mailx -s "test" whoever@wherever.com <<-EOF
hello
EOF
=======================================

You can use...
Showing results 1 to 5 of 5

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