AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / user-135038

SebMa's questions

Martin Hope
SebMa
Asked: 2024-11-07 00:44:19 +0800 CST

Como editar /etc/krb5.conf do cli com o crudini?

  • 4

Estou tentando editar /etc/krb5.confcom crudini.

Eu tentei isso:

$ sudo crudini --set /etc/krb5.conf libdefaults renew_lifetime 7d
Source contains parsing errors: '<???>'
        [line  2]:      default_realm = myDOMAIN.LAN
$ echo $?
1
$

Eu espero isso:

$ sudo crudini --set /etc/krb5.conf libdefaults renew_lifetime 7d
$ crudini --get /etc/krb5.conf libdefaults renew_lifetime
7d
$
linux
  • 1 respostas
  • 19 Views
Martin Hope
SebMa
Asked: 2024-09-06 01:47:25 +0800 CST

Como substituir o padrão na última linha

  • 5

Estou tentando substituir "},"pela "}"última linha de um arquivo:

Meu /etc/firefox/policies/policies.jsonarquivo está assim porque adicionei as linhas do certificado usando um forloop:

$ cat /etc/firefox/policies/policies.json
{
  "policies": {
    "Certificates": {
      "Install": [
        {"cert1.der", "/home/username/cert1.pem"},
        {"cert2.der", "/home/username/cert2.pem"},
$ 

Observe que não há "\n"no final deste arquivo (ainda). Antes de adicionar isto ao final do meu arquivo JSON:

      ]
    }
  }
}

, como posso remover o último ,: substituindo "}," por "}" por exemplo?

sedparece uma solução complicada para fazer isso, existe uma solução mais legível usando awkou perl?

bash
  • 3 respostas
  • 42 Views
Martin Hope
SebMa
Asked: 2022-11-11 00:52:23 +0800 CST

tar extrair como um usuário especificado: tar: /home/administrateur/glpi-10.0.3.tar: Não é possível abrir: Permissão negada

  • 5

Não é possível extrair o arquivo tar como www-datausuário, recebo um Cannot open: Permission deniederro:

$ mkdir $HOME/tmp
$ sudo chown www-data $HOME/tmp
$ ll -d $HOME/tmp
drwxrwxr-x 2 www-data administrateur 4096 2022-11-10 09:43:14 /home/administrateur/tmp/
$ ll $HOME/glpi-10.0.3.tar
-rwxrwxrwx 1 administrateur administrateur 216893440 2022-09-14 14:28:21 glpi-10.0.3.tar*
$ sudo -u www-data tar -C $HOME/tmp/ -xf $HOME/glpi-10.0.3.tar
tar: /home/administrateur/glpi-10.0.3.tar: Cannot open: Permission denied
tar: Error is not recoverable: exiting now
$
sudo
  • 1 respostas
  • 19 Views
Martin Hope
SebMa
Asked: 2022-11-08 08:21:45 +0800 CST

Como aplicar um patch contendo nomes de caminho de arquivo absolutos?

  • 5

Eu gostaria de aplicar este patch gerado, mas o patchcomando está me pedindo um nome de caminho de arquivo:

administrator@server:~$ diff -Nau /etc/php/8.1/fpm/pool.d/www.conf /etc/php/8.1/fpm/pool.d/www.NEW.conf > ~/php8.1-fpm-www.conf.patch
administrator@server:~$ sudo patch -p0 < ~/php8.1-fpm-www.conf.patch
Ignoring potentially dangerous file name /etc/php/8.1/fpm/pool.d/www.conf
Ignoring potentially dangerous file name /etc/php/8.1/fpm/pool.d/www.NEW.conf
cant find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- /etc/php/8.1/fpm/pool.d/www.conf   2022-09-15 13:30:49.000000000 +0200
|+++ /etc/php/8.1/fpm/pool.d/www.NEW.conf       2022-11-07 16:40:35.555078608 +0100
--------------------------
File to patch: ^C
administrator@server:~$
patch
  • 1 respostas
  • 34 Views
Martin Hope
SebMa
Asked: 2022-10-06 10:13:22 +0800 CST

Como detectar se estou conectado no console

  • 1

Gostaria de encontrar uma maneira confiável de detectar se estou conectado no console antes de fazer a manutenção da rede.

Até agora encontrei isto:

$ tty | grep /dev/tty
/dev/tty2 # Connected on the console
$ ssh localhost tty | grep /dev/tty
$ # Remotely connected

Esta é uma maneira confiável de fazer isso?

linux tty
  • 1 respostas
  • 21 Views
Martin Hope
SebMa
Asked: 2022-10-05 01:43:27 +0800 CST

Como usar o ipcalc no CentOS?

  • -1

Estou tentando usar ipcalcno CentOS 7.9:

# ipcalc 10.69.69.68/27
Usage: ipcalc [OPTION...]
  -c, --check         Validate IP address for specified address family
  -4, --ipv4          IPv4 address family (default)
  -6, --ipv6          IPv6 address family
  -b, --broadcast     Display calculated broadcast address
  -h, --hostname      Show hostname determined via DNS
  -m, --netmask       Display default netmask for IP (class A, B, or C)
  -n, --network       Display network address
  -p, --prefix        Display network prefix
  -s, --silent        Don't ever display error messages

Help options:
  -?, --help          Show this help message
  --usage             Display brief usage message

Funciona de forma diferente no Ubuntu:

$ ipcalc 10.69.69.68/27
Address:   10.69.69.68          00001010.01000101.01000101.010 00100
Netmask:   255.255.255.224 = 27 11111111.11111111.11111111.111 00000
Wildcard:  0.0.0.31             00000000.00000000.00000000.000 11111
=>
Network:   10.69.69.64/27       00001010.01000101.01000101.010 00000
HostMin:   10.69.69.65          00001010.01000101.01000101.010 00001
HostMax:   10.69.69.94          00001010.01000101.01000101.010 11110
Broadcast: 10.69.69.95          00001010.01000101.01000101.010 11111
Hosts/Net: 30                    Class A, Private Internet

$
centos
  • 1 respostas
  • 30 Views
Martin Hope
SebMa
Asked: 2022-09-22 07:31:58 +0800 CST

rsync não exclui o diretório especificado começando com um caractere hash (#)

  • 2

Estou tentando excluir o #recyclediretório com rsync:

$ rsync -Hauv -h -P --exclude '#recycle/' --exclude @eaDir/ --exclude '.DS_Store*' --exclude desktop.ini  user1@src_server:/volume2/Extension_1 /destination/dir/
receiving incremental file list
Extension_1/#recycle/subDir1/subDir2/
Extension_1/#recycle/subDir1/subDir2/BigVideo.mov
         39.23G  82%   36.40MB/s    0:03:44  ^C
$

(Eu também tentei citar .DS_Store*e remover a --log-fileopção, mas eles não fizeram diferença.)

Estou usando a rsyncversão 3.1.2 protocol version 31no CentOS 7.9 com a bashversão 4.2.46(2)-release.

Para ser mais específico, escrevi um script bem pequeno com uma variável que contém a lista de exclusão

$ rsyncExclusionOptions=$(printf -- "--exclude %s " "'#recycle/'" @eaDir/ "'.DS_Store*'" desktop.ini)
$ echo $rsyncExclusionOptions
--exclude '*/#recycle/' --exclude @eaDir/ --exclude '.DS_Store*' --exclude desktop.ini
$ rsync -Hauv -h -P --skip-compress=$rsyncSkipCompressList $rsyncExclusionOptions user1@src_server:/volume2/Extension_1 /destination/dir/
receiving incremental file list
Extension_1/#recycle/SERIES/ONE_PIECE/SOURCES_HD59iDF/EPISODES_666-709/
Extension_1/#recycle/SERIES/ONE_PIECE/SOURCES_HD59iDF/EPISODES_666-709/TOEI_ONE-PIECE_EP681-FN_TXT-JAP-V2-2018_169-177_1080i29-422_20-JAP-INT_XX_RXX_1811TVS1652.mov
          3.22G   5%  104.35MB/s    0:08:23  ^CKilled by signal 2.

rsync error: unexplained error (code 255) at rsync.c(638) [generator=3.1.2]
rsync: [generator] write error: Broken pipe (32)
rsync error: received SIGUSR1 (code 19) at main.c(1430) [receiver=3.1.2]

EDIT0: @roaima Eu também tentei colocar #entre colchetes (como sugerido no link que você forneceu aqui ), mas também não funcionou:

$ rsyncExclusionOptions=$(printf -- "--exclude %s " "'[#]recycle/'" @eaDir/ "'.DS_Store*'" desktop.ini)
$ echo $rsyncExclusionOptions
--exclude '[#]recycle/' --exclude @eaDir/ --exclude '.DS_Store*' --exclude desktop.ini
$ rsync -Hauv -h -P --skip-compress=$rsyncSkipCompressList $rsyncExclusionOptions user1@src_server:/volume2/Extension_1 /destination/dir/
receiving incremental file list
Extension_1/#recycle/SERIES/ONE_PIECE/SOURCES_HD59iDF/EPISODES_666-709/
Extension_1/#recycle/SERIES/ONE_PIECE/SOURCES_HD59iDF/EPISODES_666-709/TOEI_ONE-PIECE_EP681-FN_TXT-JAP-V2-2018_169-177_1080i29-422_20-JAP-INT_XX_RXX_1811TVS1652.mov
          4.04G   7%   21.67MB/s    0:39:45  ^CKilled by signal 2.

rsync error: unexplained error (code 255) at rsync.c(638) [generator=3.1.2]
rsync: [generator] write error: Broken pipe (32)
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) [receiver=3.1.2]
rsync: [receiver] write error: Broken pipe (32)

UMA SOLUÇÃO DE TRABALHO:

  • O hash foi colocado entre colchetes assim: [#]AND
  • O extra 'não deve ser usado para a [#]recycleexclusão dentro da rsyncExclusionOptionsvariável:
$ rsyncExclusionOptions=$(printf -- "--exclude %s " "[#]recycle/" @eaDir/ "'.DS_Store*'" desktop.ini)
$ echo $rsyncExclusionOptions
--exclude [#]recycle/ --exclude @eaDir/ --exclude '.DS_Store*' --exclude desktop.ini
$ rsync -Hauv -h -P --skip-compress=$rsyncSkipCompressList $rsyncExclusionOptions user1@src_server:/volume2/Extension_1 /destination/dir/
receiving incremental file list
Extension_1/SERIES/ONE_PIECE/SOURCES_VF/EPISODES_700-765/
centos rsync
  • 1 respostas
  • 58 Views
Martin Hope
SebMa
Asked: 2021-11-04 05:40:57 +0800 CST

A conversão de ASCII para ANSI não funciona

  • 3

Tentando converter um arquivo ASCII para ANSI no Linux:

$ file -bi relocate.xml 
text/xml; charset=us-ascii
$ iconv -f us-ascii -t ms-ansi < relocate.xml | file -bi -
text/xml; charset=us-ascii
$ cat relocate.xml | recode us-ascii..ms-ansi | file -bi -
Request: ANSI_X3.4-1968..:libiconv:..CP1252
Shrunk to: ANSI_X3.4-1968..CP1252
text/xml; charset=us-ascii

Eu também tentei outras ferramentas para inferir a codificação e todas elas retornam o mesmo resultado:

$ enca -L none relocate.xml ; echo "###" ; uchardet relocate.xml ; echo "###" ; encguess relocate.xml 
7bit ASCII characters
  CRLF line terminators
###
ASCII
###
relocate.xml    US-ASCII

Como você pode ver, não há mensagem de erro de iconvnem de recodeferramentas, mas a codificação final ainda é us-ascii.

Como posso convertê-lo para ANSI?

character-encoding conversion
  • 1 respostas
  • 374 Views
Martin Hope
SebMa
Asked: 2021-11-01 06:50:30 +0800 CST

Inferir URLs oficiais do Windows 7/8/10 ISOs do Linux

  • 2

Como inferir os URLs oficiais do Windows 7/8/10 ISOs do Linux e baixá-los?

Eu só tenho Linux no meu sistema e, portanto, não posso executar o downloader ISO do Windows para fazer isso.

Como eu posso fazer isso ?

linux iso
  • 1 respostas
  • 399 Views
Martin Hope
SebMa
Asked: 2020-02-25 21:40:39 +0800 CST

find não consegue excluir um diretório específico

  • 0

Eu quero listar todos os arquivos, exceto aqueles dentro .git/do diretório findapenas com o comando.

Eu tentei isso:

$ find . -path .git -prune -type f
$

ele retornou 0 arquivos (em vez dos 2 que eu tenho), então eu tentei isso:

$  find . -not -path .git -type f | grep -c '\.git'
1770
$

Eu não entendo porque nada disso está funcionando, você pode ajudar?

EDIT0 : Graças a @icarus, vejo que os caminhos devem ser precedidos ./e que estava faltando o ORoperador consequentemente, este comando funciona:

$ find . -path ./.git -prune -o -type f | grep '\.git'
./.git
./.gitignore
$

EDIT1: Por que esse outro comando não funciona?

$ find . -not -path ./.git -a -type f | grep -c '\.git'
1770
$

EDIT2: Uma última pergunta: por que o -prunepredicado precisa de um -o -printpara não imprimir o ./.gite ./.gitignoreresulta no comando abaixo:

$ find . -name ".git*" -prune | grep git
./.git
./.gitignore
$ find . -name ".git*" -prune -o -print | grep -c git
0

EDIT3: Obrigado @rastafile:

$ find . -name ".git*" -prune | grep git
./.git
./.gitignore
$ find . -name ".git*" -prune -print | grep git
./.git
./.gitignore
$ find . -name ".git*" -prune -o -print | grep git
$

Parece que o GNU encontra -prunechamadas de predicado -printimplicitamente quando a expressão anterior é verdadeira:

Se a expressão não contiver outras ações além de -prune, -print será executado em todos os arquivos para os quais a expressão for verdadeira.

Em conclusão: O comando que eu preciso é:

$ find . -name ".git*" -prune -o -type f -print

Obrigado a todos.

find
  • 2 respostas
  • 236 Views
Martin Hope
SebMa
Asked: 2019-08-15 23:42:37 +0800 CST

Array associativo global visível apenas quando o script é originado uma segunda vez

  • 2

Eu tenho o seguinte script chamado .bash_functions.testque já é originado pelo meu .bash_functionsscript:

# vim: set syn=sh noet:

mp4Options_BIS="-movflags +frag_keyframe"
declare -A audioExtension=( [libspeex]=spx [speex]=spx [opus]=opus [vorbis]=ogg [aac]=m4a [mp3]=mp3 [mp2]=mp2 [ac3]=ac3 [wmav2]=wma [pcm_dvd]=wav [pcm_s16le]=wav )

function test1 {
    echo "=> mp4Options_BIS = $mp4Options_BIS"
    echo "=> audioExtension = ${audioExtension[*]}"
}

E quando executo a test1função, vejo isso:

=> mp4Options_BIS = -movflags +frag_keyframe
=> audioExtension = 

Finalmente, quando eu origino o script mais uma vez e executo novamente a test1função, vejo isso:

=> mp4Options_BIS = -movflags +frag_keyframe
=> audioExtension = ac3 wma opus mp3 wav mp2 wav spx m4a spx ogg

Na verdade, eu uso minha Sourcefunção na primeira chamada de origem e na chamada sourceinterna e na segunda de origem:

$ grep -r .bash_functions.test 
.bash_functions:source $initDir/.bash_functions.test
$ type Source 
Source is a function
Source () 
{ 
    test "$debug" -gt 0 && time source "$@" && echo || source "$@"
}

E aqui está o que acontece:

$ Source .initBash/.bash_functions.test
$ test1
=> mp4Options_BIS = -movflags +frag_keyframe
=> audioExtension = 
$ source .initBash/.bash_functions.test
$ test1
=> mp4Options_BIS = -movflags +frag_keyframe
=> audioExtension = ac3 wma opus mp3 wav mp2 wav spx m4a spx ogg

Por que está funcionando assim?

bash associative-array
  • 1 respostas
  • 1085 Views
Martin Hope
SebMa
Asked: 2019-06-25 06:32:39 +0800 CST

Faça o upsize da tela PDF sem perdas para A4 sem redimensionar/modificar o conteúdo

  • 2

Quero aumentar o tamanho da tela de um PDF sem perdas para A4 sem redimensionar/modificar o conteúdo.

Segue o documento que tenho:

$ pdfinfo myFile.pdf 
Creator:        EO.Pdf
Producer:       EO.Pdf 16.2.50.0
CreationDate:   Mon Jun 17 14:30:34 2019
ModDate:        Mon Jun 17 14:30:34 2019
Tagged:         no
UserProperties: no
Suspects:       no
Form:           none
JavaScript:     no
Pages:          10
Encrypted:      no
Page size:      595 x 774 pts
Page rot:       0
File size:      656721 bytes
Optimized:      no
PDF version:    1.4
$ identify myFile.pdf
myFile.pdf[0] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.030u 0:00.029
myFile.pdf[1] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.020u 0:00.029
myFile.pdf[2] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.020u 0:00.019
myFile.pdf[3] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.020u 0:00.019
myFile.pdf[4] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.010u 0:00.019
myFile.pdf[5] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.010u 0:00.019
myFile.pdf[6] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.010u 0:00.009
myFile.pdf[7] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.010u 0:00.009
myFile.pdf[8] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.000u 0:00.009
myFile.pdf[9] PDF 567x737 567x737+0+0 16-bit Bilevel DirectClass 58.1KB 0.000u 0:00.000

Eu tentei isso, o tamanho do alvo é bom, mas obtive uma perda significativa de qualidade:

$ convert myFile.pdf -page A4 myFile_A4.pdf
$ pdfinfo myFile_A4.pdf | egrep "Page( size|s):"
Pages:          10
Page size:      595 x 842 pts (A4)

Como posso redimensionar a tela em até 595 x 842 pts sem modificar o conteúdo do arquivo PDF, usando um aplicativo de código aberto ou gratuito?

pdf
  • 1 respostas
  • 136 Views
Martin Hope
SebMa
Asked: 2019-05-15 23:06:24 +0800 CST

Atribuir a mesma string a várias variáveis

  • 8

Eu quero atribuir a string contida em $valuevárias variáveis ​​BASH.

Na verdade o exemplo que dei antes ( var1=var2=...=$value) não estava refletindo exatamente o que eu queria. Até agora, encontrei isso, mas só funciona se $valuefor um número inteiro:

$ let varT=varz=var3=$value

Como eu posso fazer isso?

bash assignment
  • 5 respostas
  • 6527 Views
Martin Hope
SebMa
Asked: 2019-04-25 06:45:08 +0800 CST

Como encontrar o tamanho de um diretório http/https remoto (não recursivamente) usando um determinado regexp na linha de comando

  • 1

Estou tentando encontrar o tamanho de um diretório http/https remoto (não recursivamente) usando um determinado regexp ( \.mp4) na linha de comando, existe uma ferramenta para fazer isso ou preciso analisar o index.html?

EDIT0: Aqui está a saída que eu quero analisar:

$ URL=https://cdn.sermons.love/mp4/Joseph%20Prince/
$ curl -s $URL | html2text -width $COLUMNS
****** Index of /mp4/Joseph Prince ******
[Icon ] Name                                                                           Last_modified      Size
Description
=======================================================================================================================
[[PARENTDIR]] Parent_Directory                                                                                    -
[[   ]] Joseph_Prince_-_Activate_the_Grace_Covenant_Through_Tongues.mp4                2019-04-16 22:32  428M
[[   ]] Joseph_Prince_-_Align_Yourself_With_His_Purpose_and_Prosper.mp4                2019-04-16 22:36  452M
[[   ]] Joseph_Prince_-_Amazing_Things_Happen_When_You_Flow_with_The_Spirit.mp4        2019-04-16 21:48  391M
[[   ]] Joseph_Prince_-_Are_You_Frustrating_The_Favor_of_God.mp4                       2019-04-16 21:27  524M
[[   ]] Joseph_Prince_-_As_Jesus_Is,_So_Are_You.mp4                                    2019-04-16 22:28  894M
[[   ]] Joseph_Prince_-_Blessings_Flow_Through_Grace.mp4                               2019-04-30 16:00  761M
[[   ]] Joseph_Prince_-_Break_Every_Bad_Habit_With_Christ.mp4                          2019-04-16 22:48  462M
[[   ]] Joseph_Prince_-_Break_Free_from_Addiction_and_Shame.mp4                        2019-04-16 22:12  388M
[[   ]] Joseph_Prince_-_Come_As_You_Are_and_Receive_Your_Miracle.mp4                   2019-04-16 22:16  444M
[[   ]] Joseph_Prince_-_Discerning_the_Lord's_Body_for_Greater_Health.mp4              2019-04-16 22:38  705M
[[   ]] Joseph_Prince_-_Discover_God's_Way_to_Bless_You.mp4                            2019-04-16 21:28  524M
[[   ]] Joseph_Prince_-_Don't_Fight_-_Feed!.mp4                                        2019-04-16 22:18  453M
[[   ]] Joseph_Prince_-_Draw_The_Blood_Line_Of_Protection.mp4                          2019-04-25 13:21  804M
[[   ]] Joseph_Prince_-_Easter_from_New_Creation_Church.mp4                            2019-04-16 21:23  843M
[[   ]] Joseph_Prince_-_Enjoy_Jesus'_Supply_And_Delight_His_Heart.mp4                  2019-04-16 21:38  609M
[[   ]] Joseph_Prince_-_Experience_God's_Restoration_For_Every_Regret.mp4              2019-04-16 22:37  421M
[[   ]] Joseph_Prince_-_Experience_The_Grace_Revolution.mp4                            2019-04-16 21:41  189M
[[   ]] Joseph_Prince_-_Find_Freedom_from_Every_Bondage_and_Addiction.mp4              2019-04-16 22:13  523M
[[   ]] Joseph_Prince_-_Find_True_Fulfillment_In_Life.mp4                              2019-04-16 22:20  209M
[[   ]] Joseph_Prince_-_Five_Words_To_Live_By__The_Battle_Is_The_Lord's.mp4            2019-04-16 21:57  226M
[[   ]] Joseph_Prince_-_Fresh_Grace_For_Every_Trial.mp4                                2019-04-16 22:14  609M
[[   ]] Joseph_Prince_-_Give_Jesus_Your_Cares_And_Live_Stress-Free.mp4                 2019-04-16 21:00  428M
[[   ]] Joseph_Prince_-_God_Is_A_Gracious_Rewarder.mp4                                 2019-04-16 22:42  224M
[[   ]] Joseph_Prince_-_God's_Blueprint_For_Leadership.mp4                             2019-04-16 21:30  776M
[[   ]] Joseph_Prince_-_God's_Perfect_Timing_In_The_Christmas_Story.mp4                2019-04-16 21:29  441M
[[   ]] Joseph_Prince_-_God's_Plan_To_Bless_You.mp4                                    2019-04-16 21:56  200M
[[   ]] Joseph_Prince_-_Godly_Discipline_And_Correction_Brings_Promotion.mp4           2019-04-16 21:56  776M
[[   ]] Joseph_Prince_-_Got_A_Weakness__God_Can_Use_You!.mp4                           2019-04-16 21:25  524M
[[   ]] Joseph_Prince_-_Grace_Leadership_In_Action__How_To_Represent_God's_Heart.mp4   2019-04-16 22:30  732M
[[   ]] Joseph_Prince_-_He_Is_Risen.mp4                                                2019-04-16 21:47  442M
[[   ]] Joseph_Prince_-_Healing_Flows_When_Grace_Is_Exalted.mp4                        2019-04-16 21:51  225M
[[   ]] Joseph_Prince_-_Hear_Jesus_Only_And_Be_Uplifted.mp4                            2019-04-16 21:25  436M
[[   ]] Joseph_Prince_-_Hear_the_Preached_Word_and_See_Breakthroughs.mp4               2019-04-16 21:31  459M
[[   ]] Joseph_Prince_-_Hesed_Wisdom_to_Live_Skillfully.mp4                            2019-04-16 21:32  389M
[[   ]] Joseph_Prince_-_His_Healing_Is_For_The_Undeserving.mp4                         2019-04-16 22:20  217M
[[   ]] Joseph_Prince_-_His_Promises_Are_Yours_To_Own.mp4                              2019-04-16 22:23  524M
[[   ]] Joseph_Prince_-_His_Radiance_Upon_You_Brings_Favor.mp4                         2019-04-16 22:00  689M
[[   ]] Joseph_Prince_-_His_Resurrection,_Proof_Of_Your_Righteousness.mp4              2019-04-19 11:03  809M
[[   ]] Joseph_Prince_-_How_To_Be_Blessed_God's_Way.mp4                                2019-04-16 21:08  776M
[[   ]] Joseph_Prince_-_How_To_Live_Free_From_The_Curse.mp4                            2019-04-16 22:20  614M
[[   ]] Joseph_Prince_-_How_To_Make_Spirit-Led_Decisions.mp4                           2019-04-16 21:14  871M
[[   ]] Joseph_Prince_-_How_To_Pray_When_You_Have_No_Prayer.mp4                        2019-04-16 22:31  372M
[[   ]] Joseph_Prince_-_How_You_See_Jesus_Is_How_You_Will_Receive.mp4                  2019-04-16 21:50  657M
[[   ]] Joseph_Prince_-_Immanuel__What_It_Means_To_Have_The_Lord_With_You.mp4          2019-04-16 21:30  210M
[[   ]] Joseph_Prince_-_Inherit_God's_Promises_By_Faith,_Not_by_Works.mp4              2019-04-16 21:49  521M
[[   ]] Joseph_Prince_-_Jesus_Draws_Near_When_You_Are_Discouraged_(Live_In_Israel).mp4 2019-04-16 21:18  561M
[[   ]] Joseph_Prince_-_Jesus_Our_Jubilee.mp4                                          2019-04-16 21:53  694M
[[   ]] Joseph_Prince_-_Jesus__Your_Reason_For_A_Fear-Free_Life.mp4                    2019-04-16 21:05  210M
[[   ]] Joseph_Prince_-_Keys_To_Healing_In_The_Hebrew_Language.mp4                     2019-04-16 21:00  250M
[[   ]] Joseph_Prince_-_Last_To_First_When_You_Trust_His_Goodness.mp4                  2019-04-16 22:50  781M
[[   ]] Joseph_Prince_-_Learn_to_See_What_God_Sees.mp4                                 2019-04-16 21:46  419M
[[   ]] Joseph_Prince_-_Let_Go_And_Let_His_Supply_Flow.mp4                             2019-04-16 22:33  461M
[[   ]] Joseph_Prince_-_Let_Go_and_Flow_in_the_Vine_Life.mp4                           2019-04-16 22:26  458M
[[   ]] Joseph_Prince_-_Live_Bold_Without_Guilt_and_Fear.mp4                           2019-04-16 22:04  427M
[[   ]] Joseph_Prince_-_Live_Confident.mp4                                             2019-04-16 21:03  426M
[[   ]] Joseph_Prince_-_Live_Life_Loved_By_The_Shepherd.mp4                            2019-04-16 21:39  428M
[[   ]] Joseph_Prince_-_Live_Long,_Live_Strong.mp4                                     2019-04-16 22:35  621M
[[   ]] Joseph_Prince_-_Live_Strong_In_The_Father's_Love.mp4                           2019-04-16 21:11  465M
[[   ]] Joseph_Prince_-_Live_Undefeated_In_Christ.mp4                                  2019-04-16 21:57  438M
[[   ]] Joseph_Prince_-_Make_Grace_Your_Way_of_Life.mp4                                2019-04-16 22:15  520M
[[   ]] Joseph_Prince_-_Move_From_Predicament_To_Promotion.mp4                         2019-04-16 22:46  813M
[[   ]] Joseph_Prince_-_No_Condemnation_Leads_to_Divine_Health.mp4                     2019-04-16 21:59  685M
[[   ]] Joseph_Prince_-_Not_Ashamed_Of_The_Gospel.mp4                                  2019-04-16 22:22  235M
[[   ]] Joseph_Prince_-_Practical_Leadership_Keys_To_Living_Holy.mp4                   2019-04-16 21:36  829M
[[   ]] Joseph_Prince_-_Receive_God's_Supply_for_All_of_Life's_Demands.mp4             2019-04-16 22:44  525M
[[   ]] Joseph_Prince_-_Redemption_Truths_That_Bless_Your_Relationships.mp4            2019-04-16 21:09  217M
[[   ]] Joseph_Prince_-_Rest_And_Receive_At_Jesus'_Feet.mp4                            2019-04-16 21:54  449M
[[   ]] Joseph_Prince_-_Rest_In_Jesus'_Faith_For_Miracles.mp4                          2019-04-16 21:04  519M
[[   ]] Joseph_Prince_-_Rest_Till_Your_Enemies_Become_Your_Footstool.mp4               2019-04-16 20:59  472M
[[   ]] Joseph_Prince_-_Rest!_God_Is_Working_Behind_The_Scenes.mp4                     2019-04-16 22:43  523M
[[   ]] Joseph_Prince_-_Say_Amen_To_God's_Promises.mp4                                 2019-04-16 21:45  521M
[[   ]] Joseph_Prince_-_Set_Apart_To_Be_Kings_And_Priests.mp4                          2019-04-16 21:34  802M
[[   ]] Joseph_Prince_-_Set_Free_to_Reign_in_Life.mp4                                  2019-04-16 22:06  528M
[[   ]] Joseph_Prince_-_Speak_Out_and_Find_Strength.mp4                                2019-04-16 22:11  1.1G
[[   ]] Joseph_Prince_-_Speak_Out_by_Faith_and_Win.mp4                                 2019-04-16 21:20  412M
[[   ]] Joseph_Prince_-_Stay_on_Grace_Ground_and_Experience_True_Life.mp4              2019-04-16 21:41  1.0G
[[   ]] Joseph_Prince_-_Stronger_Through_Every_Trial_And_Battle.mp4                    2019-04-16 22:47  789M
[[   ]] Joseph_Prince_-_The_Four_Gospels_Unlocked_for_Your_Blessings.mp4               2019-04-16 22:17  922M
[[   ]] Joseph_Prince_-_The_Friend_You_Can_Always_Depend_On.mp4                        2019-04-16 22:40  1.1G
[[   ]] Joseph_Prince_-_The_God_Who_Goes_Before.mp4                                    2019-04-16 22:41  442M
[[   ]] Joseph_Prince_-_The_Health-Giving_Power_Of_A_Relaxed_Heart.mp4                 2019-04-16 21:10  613M
[[   ]] Joseph_Prince_-_The_Heart_of_the_Father_Revealed.mp4                           2019-04-16 21:44  468M
[[   ]] Joseph_Prince_-_The_Lord_Our_Righteousness.mp4                                 2019-04-16 21:02  423M
[[   ]] Joseph_Prince_-_The_Secret_of_Hearing_That_Brings_Untold_Blessings.mp4         2019-04-16 22:25  687M
[[   ]] Joseph_Prince_-_The_Spirit's_Rivers_Of_Provision_And_Healing.mp4               2019-04-16 21:52  404M
[[   ]] Joseph_Prince_-_Turn_Your_Frustrations_Into_Breakthroughs.mp4                  2019-04-16 21:12  461M
[[   ]] Joseph_Prince_-_Unlocking_Redemption's_Blessings_In_Your_Life.mp4              2019-04-16 21:43  686M
[[   ]] Joseph_Prince_-_Victory_in_Your_Day_of_Trouble.mp4                             2019-04-16 22:05  456M
[[   ]] Joseph_Prince_-_Walk_In_Constant_Victory_Over_Fear.mp4                         2019-04-16 22:09  1.1G
[[   ]] Joseph_Prince_-_What_Is_Earnest_Prayer_To_God.mp4                              2019-04-16 22:31  215M
[[   ]] Joseph_Prince_-_What_Makes_No_Weapon_Prosper_Against_You.mp4                   2019-04-30 15:31  253M
[[   ]] Joseph_Prince_-_Where_Is_God_In_The_Midst_Of_Your_Trouble.mp4                  2019-04-16 21:17  833M
[[   ]] Joseph_Prince_-_Win_Over_Discouragement,_Depression_and_Burnout.mp4            2019-04-16 22:24  396M
[[   ]] Joseph_Prince_-_Win_Over_Fear_and_Pride.mp4                                    2019-04-16 21:19  459M
[[   ]] Joseph_Prince_-_Win_Over_Guilt_and_Condemnation.mp4                            2019-04-16 21:15  223M
[[   ]] Joseph_Prince_-_Wisdom_For_Holy_Living.mp4                                     2019-04-16 21:07  791M
[[   ]] Joseph_Prince_-_You_Are_Forgiven.mp4                                           2019-04-16 22:04  440M
[[   ]] Joseph_Prince_-_You_Can_Live_Healed.mp4                                        2019-04-16 22:33  217M
[[   ]] Joseph_Prince_-_Your_Blessed_Hope_In_Dark_Times.mp4                            2019-04-16 22:21  464M
[[   ]] Joseph_Prince_-_Your_Only_Battle_is_Fight_to_Remain_at_Rest.mp4                2019-04-16 21:01  616M
[[   ]] Joseph_Prince_-_Your_Past_Does_Not_Determine_Your_Future.mp4                   2019-04-16 21:22  685M
[[   ]] Joseph_Prince_-_Your_Reason_For_A_Fear_Free_Life.mp4                           2019-04-16 21:13  468M
[[   ]] Joseph_Prince_-_Your_Security_in_Time_of_Shaking.mp4                           2019-04-16 22:03  681M
=======================================================================================================================

EDIT1: Eu tentei isso não funciona porque os tamanhos de arquivo em Gigs não são adicionados:

$ curl -s $URL | html2text -width $COLUMNS | sed "s/M$//;s/G$/*1024/" | awk '/\.mp4/{size=$6;print"=> 6th field = "$6" size = "size >"/dev/stderr";total+=size}END{print "=> total = "total}'
=> 6th field = 428 size = 428
=> 6th field = 452 size = 452
=> 6th field = 391 size = 391
=> 6th field = 524 size = 524
=> 6th field = 894 size = 894
=> 6th field = 462 size = 462
=> 6th field = 388 size = 388
=> 6th field = 444 size = 444
=> 6th field = 705 size = 705
=> 6th field = 524 size = 524
=> 6th field = 453 size = 453
=> 6th field = 843 size = 843
=> 6th field = 609 size = 609
=> 6th field = 421 size = 421
=> 6th field = 189 size = 189
=> 6th field = 523 size = 523
=> 6th field = 209 size = 209
=> 6th field = 226 size = 226
=> 6th field = 609 size = 609
=> 6th field = 428 size = 428
=> 6th field = 224 size = 224
=> 6th field = 776 size = 776
=> 6th field = 441 size = 441
=> 6th field = 200 size = 200
=> 6th field = 776 size = 776
=> 6th field = 524 size = 524
=> 6th field = 732 size = 732
=> 6th field = 442 size = 442
=> 6th field = 225 size = 225
=> 6th field = 436 size = 436
=> 6th field = 459 size = 459
=> 6th field = 389 size = 389
=> 6th field = 217 size = 217
=> 6th field = 524 size = 524
=> 6th field = 689 size = 689
=> 6th field = 809 size = 809
=> 6th field = 776 size = 776
=> 6th field = 614 size = 614
=> 6th field = 871 size = 871
=> 6th field = 372 size = 372
=> 6th field = 657 size = 657
=> 6th field = 210 size = 210
=> 6th field = 521 size = 521
=> 6th field = 561 size = 561
=> 6th field = 694 size = 694
=> 6th field = 210 size = 210
=> 6th field = 250 size = 250
=> 6th field = 781 size = 781
=> 6th field = 419 size = 419
=> 6th field = 461 size = 461
=> 6th field = 458 size = 458
=> 6th field = 427 size = 427
=> 6th field = 426 size = 426
=> 6th field = 428 size = 428
=> 6th field = 621 size = 621
=> 6th field = 465 size = 465
=> 6th field = 438 size = 438
=> 6th field = 520 size = 520
=> 6th field = 813 size = 813
=> 6th field = 685 size = 685
=> 6th field = 235 size = 235
=> 6th field = 829 size = 829
=> 6th field = 525 size = 525
=> 6th field = 217 size = 217
=> 6th field = 449 size = 449
=> 6th field = 519 size = 519
=> 6th field = 472 size = 472
=> 6th field = 523 size = 523
=> 6th field = 521 size = 521
=> 6th field = 802 size = 802
=> 6th field = 528 size = 528
=> 6th field = 1.1*1024 size = 1.1*1024
=> 6th field = 412 size = 412
=> 6th field = 1.0*1024 size = 1.0*1024
=> 6th field = 789 size = 789
=> 6th field = 922 size = 922
=> 6th field = 1.1*1024 size = 1.1*1024
=> 6th field = 442 size = 442
=> 6th field = 613 size = 613
=> 6th field = 468 size = 468
=> 6th field = 423 size = 423
=> 6th field = 687 size = 687
=> 6th field = 404 size = 404
=> 6th field = 461 size = 461
=> 6th field = 686 size = 686
=> 6th field = 456 size = 456
=> 6th field = 1.1*1024 size = 1.1*1024
=> 6th field = 215 size = 215
=> 6th field = 450 size = 450
=> 6th field = 833 size = 833
=> 6th field = 396 size = 396
=> 6th field = 459 size = 459
=> 6th field = 223 size = 223
=> 6th field = 791 size = 791
=> 6th field = 440 size = 440
=> 6th field = 217 size = 217
=> 6th field = 464 size = 464
=> 6th field = 616 size = 616
=> 6th field = 685 size = 685
=> 6th field = 468 size = 468
=> 6th field = 681 size = 681
=> total = 49588.3

EDIT2: Eu finalmente fiz isso em Perl:

$ curl -s $URL | html2text -width $COLUMNS | perl -n -ale 'if(/mp4 /){$F[-1] =~ s/M$//;$F[-1] =~ s/G$/*1024/;$total+=eval $F[-1]}END{print "=> total = ",$total}'
=> total = 53987.2

EDIT3: Eu também tentei uma combinação de pupe jq, mas parece que data e tamanho não estão na matriz, portanto, não é fácil analisar:

$ curl -s $URL | pup 'json{}' | jq '.[]  | .children[0].children[1].children[1].text' 
"- 2019-04-16 22:32  428M 2019-04-16 22:36  452M 2019-04-16 21:48  391M 2019-04-16 21:27  524M 2019-04-16 22:28  894M 2019-04-30 16:00  761M 2019-04-16 22:48  462M 2019-04-16 22:12  388M 2019-04-16 22:16  444M 2019-04-16 22:38  705M 2019-04-16 21:28  524M 2019-04-16 22:18  453M 2019-04-25 13:21  804M 2019-04-16 21:23  843M 2019-04-16 21:38  609M 2019-04-16 22:37  421M 2019-04-16 21:41  189M 2019-04-16 22:13  523M 2019-04-16 22:20  209M 2019-04-16 21:57  226M 2019-04-16 22:14  609M 2019-04-16 21:00  428M 2019-04-16 22:42  224M 2019-04-16 21:30  776M 2019-04-16 21:29  441M 2019-04-16 21:56  200M 2019-04-16 21:56  776M 2019-04-16 21:25  524M 2019-04-16 22:30  732M 2019-04-16 21:47  442M 2019-04-16 21:51  225M 2019-04-16 21:25  436M 2019-04-16 21:31  459M 2019-04-16 21:32  389M 2019-04-16 22:20  217M 2019-04-16 22:23  524M 2019-04-16 22:00  689M 2019-04-19 11:03  809M 2019-04-16 21:08  776M 2019-04-16 22:20  614M 2019-04-16 21:14  871M 2019-04-16 22:31  372M 2019-04-16 21:50  657M 2019-04-16 21:30  210M 2019-04-16 21:49  521M 2019-04-16 21:18  561M 2019-04-16 21:53  694M 2019-04-16 21:05  210M 2019-04-16 21:00  250M 2019-04-16 22:50  781M 2019-04-16 21:46  419M 2019-04-16 22:33  461M 2019-04-16 22:26  458M 2019-04-16 22:04  427M 2019-04-16 21:03  426M 2019-04-16 21:39  428M 2019-04-16 22:35  621M 2019-04-16 21:11  465M 2019-04-16 21:57  438M 2019-04-16 22:15  520M 2019-04-16 22:46  813M 2019-04-16 21:59  685M 2019-04-16 22:22  235M 2019-04-16 21:36  829M 2019-04-16 22:44  525M 2019-04-16 21:09  217M 2019-04-16 21:54  449M 2019-04-16 21:04  519M 2019-04-16 20:59  472M 2019-04-16 22:43  523M 2019-04-16 21:45  521M 2019-04-16 21:34  802M 2019-04-16 22:06  528M 2019-04-16 22:11  1.1G 2019-04-16 21:20  412M 2019-04-16 21:41  1.0G 2019-04-16 22:47  789M 2019-04-16 22:17  922M 2019-04-16 22:40  1.1G 2019-04-16 22:41  442M 2019-04-16 21:10  613M 2019-04-16 21:44  468M 2019-04-16 21:02  423M 2019-04-16 22:25  687M 2019-04-16 21:52  404M 2019-04-16 21:12  461M 2019-04-16 21:43  686M 2019-04-16 22:05  456M 2019-04-16 22:09  1.1G 2019-04-16 22:31  215M 2019-04-30 15:31  253M 2019-04-16 21:17  833M 2019-04-16 22:24  396M 2019-04-16 21:19  459M 2019-04-16 21:15  223M 2019-04-16 21:07  791M 2019-04-16 22:04  440M 2019-04-16 22:33  217M 2019-04-16 22:21  464M 2019-04-16 21:01  616M 2019-04-16 21:22  685M 2019-04-16 21:13  468M 2019-04-16 22:03  681M"

Não existe uma maneira mais fácil ou "mais limpa"?

awk sed
  • 2 respostas
  • 137 Views
Martin Hope
SebMa
Asked: 2019-04-06 16:26:25 +0800 CST

Como evitar/manter a cauda substituindo \r por \n

  • 1

Quando eu reproduzo um vídeo com mpv no backgroud, recebo isso:

$ tail -f nohup.out 
Playing: https://www.facebook.com/TBN/videos/1580372468665943/
 (+) Video --vid=1 (*) (h264 1266x720 30.000fps)
 (+) Audio --aid=1 (*) 'DASH audio' (aac 1ch 48000Hz) (external)
File tags:
 Artist: TBN
 Date: 20180113
 Title: Joseph Prince joins Matt & Laurie TONIGHT on PRAISE... watch NOW!
AO: [pulse] 48000Hz mono 1ch float
VO: [gpu] 1266x720 yuv420p
AV: 00:00:00 / 00:56:50 (0%) A-V:  0.000
AV: 00:00:00 / 00:56:50 (0%) A-V:  0.000
AV: 00:00:00 / 00:56:50 (0%) A-V:  0.000
... # THERE ARE QUITE A LOT OF LINES
AV: 00:00:03 / 00:56:50 (0%) A-V:  0.000
AV: 00:00:03 / 00:56:50 (0%) A-V:  0.000
Saving state.


Exiting... (Quit)
^C

mas eu adoraria ter essa saída (assim como quando eu reproduzo o arquivo sem o nohup):

$ mpv --no-resume-playback https://www.facebook.com/TBN/videos/1580372468665943/
Playing: https://www.facebook.com/TBN/videos/1580372468665943/
 (+) Video --vid=1 (*) (h264 1266x720 30.000fps)
 (+) Audio --aid=1 (*) 'DASH audio' (aac 1ch 48000Hz) (external)
File tags:
 Artist: TBN
 Date: 20180113
 Title: Joseph Prince joins Matt & Laurie TONIGHT on PRAISE... watch NOW!
AO: [pulse] 48000Hz mono 1ch float
VO: [gpu] 1266x720 yuv420p
AV: 00:00:03 / 00:56:50 (0%) A-V:  0.000
Saving state.


Exiting... (Quit)

EDIT1: Eu uso um tty like /dev/pts/2, portanto, se eu digitar stty inlcr, ele deve afetar o tty atual.

Eu ainda recebo a mesma saída confusa emtail -f nohup.out

EDIT2: De acordo com @mosvy tailnão é o culpado, mas mpvé.

Eu descobri uma maneira de fazer um S&R mpvem stderr:

$ mpv --no-resume-playback https://www.facebook.com/TBN/videos/1580372468665943/ 2>&1 | perl -p -e '$| = 1;s/\n/\r/g if $_ =~ /^AV:/;s/Saving state/\nSaving state/' | tee mpv_all.log
Playing: https://www.facebook.com/TBN/videos/1580372468665943/
 (+) Video --vid=1 (*) (h264 634x360 30.000fps)
 (+) Audio --aid=1 (*) (aac 1ch 48000Hz)
AO: [pulse] 48000Hz mono 1ch float
VO: [gpu] 634x360 yuv420p
AV: 00:00:08 / 00:56:50 (0%) A-V:  0.000 Cache: 1024s+86MB
Saving state.
[ffmpeg] https: Will reconnect at 63421312 in 0 second(s), error=End of file.


Exiting... (Quit)

EDIT 3: @mosvy Obrigado, agora funciona:

$ nohup sh -c ' mpv --no-resume-playback https://www.facebook.com/TBN/videos/1580372468665943/ 2>&1 | perl -p -e '\''$| = 1;s/\n/\r/g if $_ =~ /^AV:/;s/Saving state/\nSaving state/'\'' ' &
$ tail -f nohup.out
Playing: https://www.facebook.com/TBN/videos/1580372468665943/
 (+) Video --vid=1 (*) (h264 634x360 30.000fps)
 (+) Audio --aid=1 (*) (aac 1ch 48000Hz)
AO: [pulse] 48000Hz mono 1ch float
VO: [gpu] 634x360 yuv420p
AV: 00:00:08 / 00:56:50 (0%) A-V:  0.000 Cache: 1767s+147MB
Saving state.
[ffmpeg] https: Will reconnect at 103693952 in 0 second(s), error=End of file.


Exiting... (Quit)
^C

EDIT 4: Outra solução graças a @jw013:

export perl_script='$| = 1;s/\n/\r/g if $_ =~ /^AV:/;s/Saving state/\nSaving state/'
mpv="command mpv"
args=("$@")
nohup sh -c "$mpv ${args[*]} 2>&1 | perl -p -e '$perl_script' | tee ~/mpv_all.log" &

Como posso fazer isso ? RESOLVIDO!

linux tail
  • 1 respostas
  • 331 Views
Martin Hope
SebMa
Asked: 2018-12-14 10:36:37 +0800 CST

Converter um jpeg digitalizado A4R (lanscape A4) para pdf A4R (lanscape A4)

  • 2

Digitalizei uma folha de papel A4R para um arquivo jpg de 2048x1443.

EDIT1: Já está girado para paisagem (2048x1443). FIM DA EDIÇÃO 1

Agora, se eu tentar convertê-lo com este comando:

$ convert -page A4R A4R_Scanned.jpg A4R_Scanned.pdf
$ echo $?
0

EDIT2: Não houve mensagem de erro em relação ao argumento A4R. FIM DA EDIÇÃO 2

Recebo uma carta dos EUA em branco, página de retrato:

$ identify A4R_Scanned.pdf
   **** Warning:  File has an empty MediaBox. Using the current page size instead.
                  Output may be incorrect.
   **** Warning:  File has an empty MediaBox. Using the current page size instead.
                  Output may be incorrect.
A4R_Scanned.pdf PDF 595x842 595x842+0+0 16-bit Bilevel DirectClass 63.2K 

EDIT3: Eu tentei outra solução:

$ convert -page A4 -rotate 90 A4R_Scanned.jpg A4R_Scanned2A4.pdf

Isso dá um documento A4 satisfatório sem perda de qualidade visível, mas preciso girá-lo de volta para ter um A4R (paisagem).

Quando eu faço isso, mais qualidade é perdida e isso é visível:

$ convert -rotate -90 A4R_Scanned2A4.pdf A4R_Scanned2A4R.pdf

Agora, minha pergunta é: Como faço para girar o documento de volta sem perder muita qualidade?

FIM DA EDIÇÃO 3

EDIT4 : Graças ao dirkt, a conversão pode ser feita em uma etapa e a qualidade é boa :-):

$ convert -page 842x595 A4R_Scanned.jpg A4R_Scanned2A4R.pdf

FIM DA EDIÇÃO 4

pdf conversion
  • 1 respostas
  • 1418 Views
Martin Hope
SebMa
Asked: 2018-10-07 04:14:42 +0800 CST

Qual é o diretório "~/.stack"?

  • 7

Meu diretório "~/.stack" está ocupando 2,5 GB e possui os seguintes grandes diretórios principais:

1330    programs/
877     indices/
264     snapshots/

O que é este diretório "~/.stack"?

Posso remover com segurança os maiores arquivos nele?

storage
  • 1 respostas
  • 1581 Views

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Possível firmware ausente /lib/firmware/i915/* para o módulo i915

    • 3 respostas
  • Marko Smith

    Falha ao buscar o repositório de backports jessie

    • 4 respostas
  • Marko Smith

    Como exportar uma chave privada GPG e uma chave pública para um arquivo

    • 4 respostas
  • Marko Smith

    Como podemos executar um comando armazenado em uma variável?

    • 5 respostas
  • Marko Smith

    Como configurar o systemd-resolved e o systemd-networkd para usar o servidor DNS local para resolver domínios locais e o servidor DNS remoto para domínios remotos?

    • 3 respostas
  • Marko Smith

    apt-get update error no Kali Linux após a atualização do dist [duplicado]

    • 2 respostas
  • Marko Smith

    Como ver as últimas linhas x do log de serviço systemctl

    • 5 respostas
  • Marko Smith

    Nano - pule para o final do arquivo

    • 8 respostas
  • Marko Smith

    erro grub: você precisa carregar o kernel primeiro

    • 4 respostas
  • Marko Smith

    Como baixar o pacote não instalá-lo com o comando apt-get?

    • 7 respostas
  • Martin Hope
    user12345 Falha ao buscar o repositório de backports jessie 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl Por que a maioria dos exemplos do systemd contém WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky Como exportar uma chave privada GPG e uma chave pública para um arquivo 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll status systemctl mostra: "Estado: degradado" 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim Como podemos executar um comando armazenado em uma variável? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S Por que /dev/null é um arquivo? Por que sua função não é implementada como um programa simples? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 Como ver as últimas linhas x do log de serviço systemctl 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - pule para o final do arquivo 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla Por que verdadeiro e falso são tão grandes? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis Substitua a string em um arquivo de texto enorme (70 GB), uma linha 2017-12-30 06:58:33 +0800 CST

Hot tag

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve