08-30-2012
Or you can just do ls -d .* ?* which will work in other shells than bash.
This User Gave Thanks to Corona688 For This Post:
7 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello all,
I have two files, that I suspect may contain hidden characters (EG, three spaces instead of a tab). Does anyone know of any tool that can display this (I have tried using diff, but I'm not quite sure it would do the job) (6 Replies)
Discussion started by: Khoomfire
6 Replies
2. Shell Programming and Scripting
Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is:
find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \;
But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
Discussion started by: pochaw
4 Replies
3. Shell Programming and Scripting
I know that cat -v will show me hidden characters in a file....
I for some reason seem to think that there's a bash command that will show me hidden characters in a variable in a script? Or am I just imagining it?
Thanks in advance (8 Replies)
Discussion started by: Bashingaway
8 Replies
4. Red Hat
Hi:
I found some "hidden" directories created by a version control tool that can't be displayed by "ls -al". but user can "cd" into them and see the files inside.
My questions are:
1) what commands can reveal those directories when "ls -al" fails?
2) how do you create such... (2 Replies)
Discussion started by: phil518
2 Replies
5. Shell Programming and Scripting
Hi
I have a prompt like this:
PS1='\\u@\h \\w $(es=$?; ] && echo "\" || echo "\")\$\'
It works like it should, but have a bug.
Problem is the counting of hidden files
$(($(ls -ad .* | wc -l)-2))
echo $(($(ls -ad .* | wc -l)-2))
The . seems to create the problem when I cut and past to... (3 Replies)
Discussion started by: Jotne
3 Replies
6. UNIX for Advanced & Expert Users
Find all files in the current directory only excluding hidden directories and files.
For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided.
`find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Discussion started by: ksailesh1
7 Replies
7. Shell Programming and Scripting
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT DEBIAN
stg-series
STG-SERIES(1) StGit Manual STG-SERIES(1)
NAME
stg-series - Print the patch series
SYNOPSIS
stg series [options] [<patch-range>]
DESCRIPTION
Show all the patches in the series, or just those in the given range, ordered from top to bottom.
The applied patches are prefixed with a + (except the current patch, which is prefixed with a >), the unapplied patches with a -, and the
hidden patches with a !.
Empty patches are prefixed with a 0.
OPTIONS
-b BRANCH, --branch BRANCH
Use BRANCH instead of the default branch.
-a, --all
Show all patches, including the hidden ones.
-A, --applied
Show the applied patches only.
-U, --unapplied
Show the unapplied patches only.
-H, --hidden
Show the hidden patches only.
-m BRANCH, --missing BRANCH
Show patches in BRANCH missing in current.
-c, --count
Print the number of patches in the series.
-d, --description
Show a short description for each patch.
--author
Show the author name for each patch.
-e, --empty
Before the +, >, -, and ! prefixes, print a column that contains either 0 (for empty patches) or a space (for non-empty patches).
--showbranch
Append the branch name to the listed patches.
--noprefix
Do not show the patch status prefix.
-s, --short
List just the patches around the topmost patch.
STGIT
Part of the StGit suite - see linkman:stg[1]
StGit 03/13/2012 STG-SERIES(1)