在URL中将%XX转换为字符

等待URL,然后转换。
.

0

linux命令:read -p "> " URL; echo -e "> `echo $URL | sed 's|%|\\\\x|g'`" 's|%|\\\\x|g'`" sed | $URL `echo "> -e echo URL; " "> -p read read -p "> " URL; echo -e "> `echo $URL | sed 's|%|\\\\x|g'`"rootopen.com
linux命令:read -p "> " URL; echo -e "> `echo $URL | sed 's|%|\\\\x|g'`" 's|%|\\\\x|g'`" sed | $URL `echo "> -e echo URL; " "> -p read read -p "> " URL; echo -e "> `echo $URL | sed 's|%|\\\\x|g'`"rootopen.com
fdrl 2018-04-23 07:35:48
输出
linux命令:read 详解

评论

相关推荐

linux命令:read VAR1 VAR2 VAR3 < <(echo aa bb cc); echo $VAR2 $VAR2 echo cc); bb aa <(echo < VAR3 VAR2 VAR1 read read VAR1 VAR2 VAR3 < <(echo aa bb cc); echo $VAR2rootopen.com
linux命令:read VAR1 VAR2 VAR3 < <(echo aa bb cc); echo $VAR2 $VAR2 echo cc); bb aa <(echo < VAR3 VAR2 VAR1 read read VAR1 VAR2 VAR3 < <(echo aa bb cc); echo $VAR2rootopen.com
.

许多人喜欢用'dd'来创建CD / DVD iso映像。这不好。很坏。这是因为'dd'没有任何内置的错误检查。所以,你不知道你是否得到了所有的比特。因此,这不适合工作。相反,来自wodim包的'reaom'(读取光学媒体)就是你应该使用的。它有内置的错误检查。同样,如果您想刻录新创建的ISO,请远离“dd”,并使用:wodim -v -eject /path/to/image.iso

linux命令:readom dev=/dev/scd0 f=/path/to/image.iso f=/path/to/image.iso dev=/dev/scd0 readom readom dev=/dev/scd0 f=/path/to/image.isorootopen.com
linux命令:readom dev=/dev/scd0 f=/path/to/image.iso f=/path/to/image.iso dev=/dev/scd0 readom readom dev=/dev/scd0 f=/path/to/image.isorootopen.com
.

从中读取用户名

linux命令:read -p 'Username: ' u;sudo -H -u $u xauth add $(xauth list|grep :$(echo ${DISPLAY: -4:2}));sudo su - $u $u - su -4:2}));sudo ${DISPLAY: :$(echo list|grep $(xauth add xauth $u -u -H u;sudo ' 'Username: -p read read -p 'Username: ' u;sudo -H -u $u xauth add $(xauth list|grep :$(echo ${DISPLAY: -4:2}));sudo su - $urootopen.com
linux命令:read -p 'Username: ' u;sudo -H -u $u xauth add $(xauth list|grep :$(echo ${DISPLAY: -4:2}));sudo su - $u $u - su -4:2}));sudo ${DISPLAY: :$(echo list|grep $(xauth add xauth $u -u -H u;sudo ' 'Username: -p read read -p 'Username: ' u;sudo -H -u $u xauth add $(xauth list|grep :$(echo ${DISPLAY: -4:2}));sudo su - $urootopen.com
.

这个命令要求站名,然后连接到somafm,对于那些有Linux家庭娱乐盒和ssh启用的人来说,Great只是为了那里的CLI恶魔(我知道我是他们中的一员;)而且, t忘记添加这个作为别名(即别名somafm =“读-p'哪个站?”; mplayer --reallyquite -vo noneaoaoao sdl

linux命令:read -p "Which station? "; mplayer --reallyquiet -vo none -ao sdl http://somafm.com/startstream=${REPLY}.pls http://somafm.com/startstream=${REPLY}.pls sdl -ao none -vo --reallyquiet mplayer "; station? "Which -p read read -p "Which station? "; mplayer --reallyquiet -vo none -ao sdl http://somafm.com/startstream=${REPLY}.plsrootopen.com
linux命令:read -p "Which station? "; mplayer --reallyquiet -vo none -ao sdl http://somafm.com/startstream=${REPLY}.pls http://somafm.com/startstream=${REPLY}.pls sdl -ao none -vo --reallyquiet mplayer "; station? "Which -p read read -p "Which station? "; mplayer --reallyquiet -vo none -ao sdl http://somafm.com/startstream=${REPLY}.plsrootopen.com
.

使用pid获取流程的完整路径。当你不从路径中挑选哪个命令时很有用

linux命令:readlink -f /proc/<pid>/cmdline /proc/<pid>/cmdline -f readlink readlink -f /proc/<pid>/cmdlinerootopen.com
linux命令:readlink -f /proc/<pid>/cmdline /proc/<pid>/cmdline -f readlink readlink -f /proc/<pid>/cmdlinerootopen.com
.

readlink -f接受相对的非规范路径并发出相应的规范化绝对路径。

linux命令:readlink -f ../super/symlink_bon/ahoy ../super/symlink_bon/ahoy -f readlink readlink -f ../super/symlink_bon/ahoyrootopen.com
linux命令:readlink -f ../super/symlink_bon/ahoy ../super/symlink_bon/ahoy -f readlink readlink -f ../super/symlink_bon/ahoyrootopen.com
.

暂停脚本进度,直到按下键。来源:http://bash-hackers.org/wiki/doku.php/mirroring/bashfaq/065

linux命令:read -sn 1 -p "Press any key to continue..." continue..." to key any "Press -p 1 -sn read read -sn 1 -p "Press any key to continue..."rootopen.com
linux命令:read -sn 1 -p "Press any key to continue..." continue..." to key any "Press -p 1 -sn read read -sn 1 -p "Press any key to continue..."rootopen.com
.

linux命令:read -sn 1 -p 'Press any key to continue...';echo continue...';echo to key any 'Press -p 1 -sn read read -sn 1 -p 'Press any key to continue...';echorootopen.com
linux命令:read -sn 1 -p 'Press any key to continue...';echo continue...';echo to key any 'Press -p 1 -sn read read -sn 1 -p 'Press any key to continue...';echorootopen.com
.

如何完成没有任何输出的命令或脚本

linux命令:read enterKey enterKey read read enterKeyrootopen.com
linux命令:read enterKey enterKey read read enterKeyrootopen.com
.

等待关键中风。你可以使用这个“;”后面建立一个命令链。

linux命令:read -p "Press enter to continue.." continue.." to enter "Press -p read read -p "Press enter to continue.."rootopen.com
linux命令:read -p "Press enter to continue.." continue.." to enter "Press -p read read -p "Press enter to continue.."rootopen.com
.

刚添加-sn1 -s = silent-n1 =插入后只需要一个符号继续

linux命令:read -sn1 -p "Press any key to continue..."; echo echo continue..."; to key any "Press -p -sn1 read read -sn1 -p "Press any key to continue..."; echorootopen.com
linux命令:read -sn1 -p "Press any key to continue..."; echo echo continue..."; to key any "Press -p -sn1 read read -sn1 -p "Press any key to continue..."; echorootopen.com
.

感谢John_W建议允许〜/在保存directory.directions时使用的修复:键入url,它将显示保存时文件的外观样式,然后询问您是否要保存预览并你想要保存的地方。非常适合在没有完整的Web浏览器甚至GUI的情况下抓取最新的commandlinefu命令。要求:w3m

linux命令:read -p "enter url:" a ; w3m -dump $a > /dev/shm/e1q ; less /dev/shm/e1q ; read -p "save file as text (y/n)?" b ; if [ $b = "y" ] ; then read -p "enter path with filename:" c && touch $(eval echo "$c") ; mv /dev/shm/e1q $(eval echo "$c") ; fi ; echo DONE DONE echo ; fi ; "$c") echo $(eval /dev/shm/e1q mv ; "$c") echo $(eval touch && c filename:" with path "enter -p read then ; ] "y" = $b [ if ; b (y/n)?" text as file "save -p read ; /dev/shm/e1q less ; /dev/shm/e1q > $a -dump w3m ; a url:" "enter -p read read -p "enter url:" a ; w3m -dump $a > /dev/shm/e1q ; less /dev/shm/e1q ; read -p "save file as text (y/n)?" b ; if [ $b = "y" ] ; then read -p "enter path with filename:" c && touch $(eval echo "$c") ; mv /dev/shm/e1q $(eval echo "$c") ; fi ; echo DONErootopen.com
linux命令:read -p "enter url:" a ; w3m -dump $a > /dev/shm/e1q ; less /dev/shm/e1q ; read -p "save file as text (y/n)?" b ; if [ $b = "y" ] ; then read -p "enter path with filename:" c && touch $(eval echo "$c") ; mv /dev/shm/e1q $(eval echo "$c") ; fi ; echo DONE DONE echo ; fi ; "$c") echo $(eval /dev/shm/e1q mv ; "$c") echo $(eval touch && c filename:" with path "enter -p read then ; ] "y" = $b [ if ; b (y/n)?" text as file "save -p read ; /dev/shm/e1q less ; /dev/shm/e1q > $a -dump w3m ; a url:" "enter -p read read -p "enter url:" a ; w3m -dump $a > /dev/shm/e1q ; less /dev/shm/e1q ; read -p "save file as text (y/n)?" b ; if [ $b = "y" ] ; then read -p "enter path with filename:" c && touch $(eval echo "$c") ; mv /dev/shm/e1q $(eval echo "$c") ; fi ; echo DONErootopen.com
.

wget --user = username --password =“$ password”http://example.org/除了完全从历史隐藏命令外,我更喜欢使用“read”将密码放入变量中,然后使用该变量在命令中而不是密码。如果没有“-e”和“-s”,它应该可以在任何bourne类型的shell中工作,但-s是确保密码不会被回显到屏幕上的原因。 (-e使编辑工作更好一点)

linux命令:read -e -s -p "Password: " password password " "Password: -p -s -e read read -e -s -p "Password: " passwordrootopen.com
linux命令:read -e -s -p "Password: " password password " "Password: -p -s -e read read -e -s -p "Password: " passwordrootopen.com
.

像7171一样,但固定错字,使用较少的变量,甚至更加神秘!

linux命令:read -a A<<<".*.**..*....*** 8 9 5 10 6 0 2 11 7 4";for C in `date +"%H%M"|fold -w1`;do echo "${A:${A[C+1]}:4}";done "${A:${A[C+1]}:4}";done echo -w1`;do +"%H%M"|fold `date in C 4";for 7 11 2 0 6 10 5 9 8 A<<<".*.**..*....*** -a read read -a A<<<".*.**..*....*** 8 9 5 10 6 0 2 11 7 4";for C in `date +"%H%M"|fold -w1`;do echo "${A:${A[C+1]}:4}";donerootopen.com
linux命令:read -a A<<<".*.**..*....*** 8 9 5 10 6 0 2 11 7 4";for C in `date +"%H%M"|fold -w1`;do echo "${A:${A[C+1]}:4}";done "${A:${A[C+1]}:4}";done echo -w1`;do +"%H%M"|fold `date in C 4";for 7 11 2 0 6 10 5 9 8 A<<<".*.**..*....*** -a read read -a A<<<".*.**..*....*** 8 9 5 10 6 0 2 11 7 4";for C in `date +"%H%M"|fold -w1`;do echo "${A:${A[C+1]}:4}";donerootopen.com
.

linux命令:read -a ARR <<<'world domination now!'; echo ${ARR[2]}; ${ARR[2]}; echo now!'; domination <<<'world ARR -a read read -a ARR <<<'world domination now!'; echo ${ARR[2]};rootopen.com
linux命令:read -a ARR <<<'world domination now!'; echo ${ARR[2]}; ${ARR[2]}; echo now!'; domination <<<'world ARR -a read read -a ARR <<<'world domination now!'; echo ${ARR[2]};rootopen.com
.

神秘的版本

linux命令:read -a A <<<"8 9 5 10 6 0 3 11 7 4";B='.*.**..*....***';for C in $(date +"%H%M"|fold -w1);do echo "${B:${A[C]}:4}";done "${B:${A[C]}:4}";done echo -w1);do +"%H%M"|fold $(date in C 4";B='.*.**..*....***';for 7 11 3 0 6 10 5 9 <<<"8 A -a read read -a A <<<"8 9 5 10 6 0 3 11 7 4";B='.*.**..*....***';for C in $(date +"%H%M"|fold -w1);do echo "${B:${A[C]}:4}";donerootopen.com
linux命令:read -a A <<<"8 9 5 10 6 0 3 11 7 4";B='.*.**..*....***';for C in $(date +"%H%M"|fold -w1);do echo "${B:${A[C]}:4}";done "${B:${A[C]}:4}";done echo -w1);do +"%H%M"|fold $(date in C 4";B='.*.**..*....***';for 7 11 3 0 6 10 5 9 <<<"8 A -a read read -a A <<<"8 9 5 10 6 0 3 11 7 4";B='.*.**..*....***';for C in $(date +"%H%M"|fold -w1);do echo "${B:${A[C]}:4}";donerootopen.com
.

部分coreutils - 所以不需要额外的软件包...

linux命令:readlink -e /bin/ls /bin/ls -e readlink readlink -e /bin/lsrootopen.com
linux命令:readlink -e /bin/ls /bin/ls -e readlink readlink -e /bin/lsrootopen.com
.

linux命令:readlink -f /proc/$$/exe /proc/$$/exe -f readlink readlink -f /proc/$$/exerootopen.com
linux命令:readlink -f /proc/$$/exe /proc/$$/exe -f readlink readlink -f /proc/$$/exerootopen.com
.

从相对路径中检索绝对路径名

linux命令:readlink -f myfile.txt myfile.txt -f readlink readlink -f myfile.txtrootopen.com
linux命令:readlink -f myfile.txt myfile.txt -f readlink readlink -f myfile.txtrootopen.com
.

linux命令:readlink /proc/self/cwd /proc/self/cwd readlink readlink /proc/self/cwdrootopen.com
linux命令:readlink /proc/self/cwd /proc/self/cwd readlink readlink /proc/self/cwdrootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令