Search Results

Search: Posts Made By: jeppe83
4,103
Posted By Subbeh
Try using eval: eval p"$n"="$p" It's not...
Try using eval:
eval p"$n"="$p"

It's not a very good practise to set variables like this though. A much better way is to set arrays:
$ a[1]=test
$ echo ${a[1]}
test
1,116
Posted By Scrutinizer
Or try: for f in *.mpg do if [ -f "$f" ];...
Or try:
for f in *.mpg
do
if [ -f "$f" ]; then
ffmpeg -i "./$f" -vcodec copy -an "na/$f"
fi
done
1,084
Posted By bartus11
Try:awk '/^[^ \t]/{$0=++i" "$0}1' file
Try:awk '/^[^ \t]/{$0=++i" "$0}1' file
7,624
Posted By Scrutinizer
I concocted this awk, you could perhaps give it a...
I concocted this awk, you could perhaps give it a try:
echo "word" | awk 'NR==1{w=$0; l=split(w,W)} length==l{for(i=1;i<=l;i++)if(gsub(W[i],"&",w)!=gsub(W[i],"&"))next;print}' FS= - wordlist
I...
7,624
Posted By drl
Hi. echo hello | fold -w 1 | sort -r | tr -d...
Hi.

echo hello | fold -w 1 | sort -r | tr -d '\n';echo
producing
ollhe
See man pages for details.

Best wishes ... cheers, drl
Showing results 1 to 5 of 5

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