ubuntu9.10 好像不支持命令先执行命令

sh/bash/dash/ksh/zsh等Shell脚本
回复
sharp_minminzhu
帖子: 67
注册时间: 2009-11-12 20:27

ubuntu9.10 好像不支持命令先执行命令

#1

帖子 sharp_minminzhu » 2010-04-29 0:35

如题,好像不支持这个 ` ` 命令先执行命令,
比如我想将ie收藏夹里面的所有网址提取到一个文件中,再用firefox批量打开:
cat */* | grep "http:" | cut -c 5- > url.txt #注,收藏夹里有很多子文件夹,但只有一层,要输出里面的文件好像只可以cat */*

#注,以下三个命令均无效
head -n 10 url.txt | firefox -new-tab
head -n 20 url.txt | tail -n 10 | firefox -new-tab
firefox -new-tab `head -n 10 url.txt`

请大家帮帮忙应该怎么弄才对?
头像
wowoto
帖子: 3050
注册时间: 2009-04-11 12:17
系统: windows7

Re: ubuntu9.10 好像不支持命令先执行命令

#2

帖子 wowoto » 2010-05-01 22:28

wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
回复