|
I'v run both commands and they both seem to do the same thing, is this true or is there something happening I'm not seeing?
These two appear to do the same thing:
result=$(ls -l) result=`ls -l`
Started by Mint on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Hi,
Please check out http://nixcraft.com/shell-scripting/13288-loop-input-backticks-vs-differences.html#post19804 for a nice....
The $() syntax is a bit more permissive in what can go between the () as compared to what is accepted between `` .
Very little.
|
|
Silverhawk sound ls. freddy krueger ls. deebuzz muzik, rude7 silverhawk first round hope they played better the rest of the dance http://www14.zippyshare.com/v/50177300/file.html
Started by super e on
, 29 posts
by 18 people.
Answer Snippets (Read the full thread at dancehallreggae):
Where is Jerry??? Richie Poo did meet inna accident and lick him head? or have some amnesia??? the man ... .
Mi hope dem nuh mek dem good chune ya go to waste.. .
NiteLifeBuzz.com SilverHawk Garnet Silk dem did bad...
When was this? taking a slice bless up.
|
|
Ls on a dotfile
My directory contains:
$ ls -A .dotfile20091021 file20091020 file20091021
I want to list ALL files containing 20091021 in their name.
If I run:
$ ls -A *20091021* file20091021
If I run:
$ ls -A .*20091021* .dotfile20091021
Can I get both...
Started by fahdshariff on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at superuser):
Ubuntu spent tens of thousands ....
For instance:
user@tower:~ ls -lah | grep \.mozilla bashisms.
Might help you sort that out in a portable way .
ls -lah | grep \.foo
..
You are relying on (whatever shell you are using) to do glob expansion .
|
Ask your Facebook Friends
|
How can you ls everything else the the files *{.tex, .aux} ?
I run unsuccessfully
ls -I".tex"
Started by Masi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
ls | grep -v .tex\\\|.aux.
ls -I*.tex -I*.aux
or
ls --hide=*.tex --hide=*.aux
well, if we called this a "shell programming" question, I guess it could go here.
|
|
How can you ls everything else the the files *{.tex, .aux} ?
I run unsuccessfully
ls -I".tex"
Started by Masi on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
ls -I*.tex -I*.aux
or
ls --hide=*.tex --hide=*.aux
you may use
ls | grep -v *.tex | grep -v *.aux
regards
If you use bash and have the extglob shell option set (which is usually the case):
ls.
|
|
I would like to use ls command to first show direcotries and then files. I tried
ls -la | sort -k 1
But I got a wrong order.
Started by atricapilla on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at superuser):
ls -laX will show ....
Hope this will help!
David.
There is also the LS Wikipedia page that can give some good information.
Here is a good web site, Unix LS Command, 15 best practices
It's detailed and a lot of information is listed.
|
|
How can I sort the output of ls by last modified date?
Started by nearly_lunchtime on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Using -t :
ls -t
option: -t
ls -t
or (for reverse, most recent at bottom):
ls -tr
Pass the -t flag:
$ ls -t.
|
|
I run
ln /a/A /b/B
I would like to see at the folder a where the file A points to by ls .
How can you see the actual hard link by ls ?
Started by Masi on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
ls -l
The first column.
You can use 'test A -ef B' from the shell to perform this check .
|
|
Hi,
i need to store directory information in a way that i can parse as json.
when i do ls -m it gives me comma separated values but no user/group/size info.
bash-3.2$ ls -mp 100CANON/, 2009-11-27_1540.swf, 2009-11-27_1546.swf, 2009-11-27_1551.swf, 200...
Started by Devrim on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Hi,
just combine the ls -l output with some other commands, like this ls -l | tr ' ' ',' | tr '\n.
|
|
How could I use grep and ls in ftp client...
I mean if I want to find some specific file I could use,
ls -l | grep pattern
thanks.
jcyang.
Started by jcyang on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
|