Search Results

Search: Posts Made By: xxmenxx
11,452
Posted By xxmenxx
After getting number of rows in one file, you can...
After getting number of rows in one file, you can use sed to split it

sed '$begin_from,$last_to w new_file1' original_file

as begin_from and last_to are your start and end lines, "w" means...
8,162
Posted By xxmenxx
If you get number of files to be installed, you...
If you get number of files to be installed, you can use the following as a starting point

count=0
while [ $count -le 10 ]; do
count=`expr $count + 1`
sleep 1
echo -n =
done...
1,503
Posted By xxmenxx
I can't understand what really you want, but to...
I can't understand what really you want, but to extract the password , you can use

cut -f 2 -d =
-or-
awk -F = '{print $2}'
3,993
Posted By xxmenxx
danmero, can you explain your code please what...
danmero, can you explain your code please
what "%" means here??
thanks in advance
6,666
Posted By xxmenxx
tar -xvf /dev/rmt0 . You can replace the " . "...
tar -xvf /dev/rmt0 .
You can replace the " . " with the destination where you want to restore the files.
3,503
Posted By xxmenxx
You can use a script like this cd...
You can use a script like this

cd /your/core/file/location
if [ -e *.core ]; then
num=`ls *.core|wc -l`
mail -s "Attention" name@yourmail <<message
you have $num .corn files...
3,993
Posted By xxmenxx
Try this x=example.tar.z y=`echo $x |cut...
Try this

x=example.tar.z
y=`echo $x |cut -f 1 -d . `
echo $y
6,666
Posted By xxmenxx
To backup all of your disk to a tape for example ...
To backup all of your disk to a tape for example
go to disk root, then

tar -cvf /dev/rmt0 .
3,354
Posted By xxmenxx
I got the answer of my and balamv question,...
I got the answer of my and balamv question, "not_using_0" was assigned to dirs in the first position, and the index was began from the position 1, so it is no matter what is the first element, as we...
3,354
Posted By xxmenxx
mschwage, It works Great But I can't unerstand...
mschwage, It works Great
But I can't unerstand why u gave the value of "not_using_0 to dirs, as balamv asked ??
balamv,about the for statement, it test all items in the current directory if it is...
15,529
Posted By xxmenxx
Try this for file in php1 php2 php3 ... do...
Try this

for file in php1 php2 php3 ...
do
sed -e '$d' $file > $file.tmp
rm $file
mv $file.tmp $file
done


Replace php1 php2 php3 ... wth your files
3,167
Posted By xxmenxx
if u can get the row number, u can use "sed" as...
if u can get the row number, u can use "sed" as following
sed -e '1,301d' -e '364,$d' mylog >log_result

as it delete from row number 1 to numer 301 , and from 364 to the end of ur log, then write...
Showing results 1 to 12 of 12

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