Search Results

Search: Posts Made By: zouhair
14,243
Posted By zouhair
grep ^, a.txt
grep ^, a.txt
965
Posted By zouhair
Much cleaner but as you said it is very slow when...
Much cleaner but as you said it is very slow when I run it on folders with more than 100 video files.

Thanks

---------- Post updated at 05:07 ---------- Previous update was at 04:47 ----------...
965
Posted By zouhair
Function to get the duration of all videos in a folder(s)
did this function to generate the duration of all the video files in a folder or multiple folders, it works fine for my use (I am no Guru as you may have noticed) but when I give it a lot of folders...
1,237
Posted By zouhair
wget -nd -r -P /local/folder -A zip,7z,bzip,xz...
wget -nd -r -P /local/folder -A zip,7z,bzip,xz http://www.website.com
8,581
Posted By zouhair
No good question = No response. You should...
No good question = No response.

You should think out things before asking.
50,858
Posted By zouhair
If you have a file named "this$file" (the $ is...
If you have a file named "this$file" (the $ is part of the name), and you want to handle it with a shell you have to remove its special meaning for the shell (it is used to exctract variable data for...
2,979
Posted By zouhair
Or just : sed "s/msga\///" <file
Or just :

sed "s/msga\///" <file
27,366
Posted By zouhair
$ is used to extract not to assign.
$ is used to extract not to assign.
27,366
Posted By zouhair
This may work: i=0 while [ $i -le 11 ]...
This may work:


i=0
while [ $i -le 11 ]
do
master_array[i]=${ARRAY[i]}
((i++))
done
1,732
Posted By zouhair
Here you go: DATE=$(date +%Y-%m-%d) ...
Here you go:

DATE=$(date +%Y-%m-%d)

FILENAME="${DATE}-${OTHER_VARIABLE}.mov"
1,823
Posted By zouhair
Maybe this will help : ...
Maybe this will help :

n="/Users/keith/Desktop/test/file.mov"

echo ${n%/*} --> /Users/keith/Desktop/test (forgot the /)
echo ${n##*/} ---> file.mov

You may assign the last one to a...
3,350
Posted By zouhair
Maybe you want only to get the "$?" result for...
Maybe you want only to get the "$?" result for that matter:

#!/bin/bash
echo "Enter the output file name"
read output_file
echo "Enter the Orginal file Name"
read write_file
diff $write_file...
14,572
Posted By zouhair
ps -ef | head -3 | tail -2
ps -ef | head -3 | tail -2
8,820
Posted By zouhair
No, because then you will have the rest of the...
No, because then you will have the rest of the string:
zouhair@gutzy:~ (.318 MB) $ echo "[1] mgmt.mib-2.bgp.bgpPeerTable.bgpPeerEntry.bgpPeerLastError.163.121.170.20 (OctetString): 0x04 00" | cut -d...
53,260
Posted By zouhair
May wanna check this script...
May wanna check this script (http://www.mail-archive.com/lftp@uniyar.ac.ru/msg01840.html) too, it uses lftp instead.
8,820
Posted By zouhair
in shell: echo "[1]...
in shell:

echo "[1] mgmt.mib-2.bgp.bgpPeerTable.bgpPeerEntry.bgpPeerLastError.163.121.170.20 (OctetString): 0x04 00" | cut -d . -f 7- | cut -d " " -f 1

dunno if you want more than that,...
Showing results 1 to 16 of 16

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