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)
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)
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)
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)
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)
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)
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)