shell variable

How do I count and print particular character (say D or digit 7) in a string or variable under Bash UNIX / Linux shell?

{ 9 comments }

How do I change the default home page with Lynx browser under UNIX or Linux operating system? How do I set the startup page to http://google.co.uk with Lynx?

{ 0 comments }

How do I get the current date in Unix or Linux shell scripting and store it into a shell variable? How do I print the current date using Unix shell script?

{ 0 comments }

How do I get the current server time in shell script on Linux or Unix-like operating systems? How do I store the current time in the shell variable and use in my scripts?

{ 6 comments }

How do I run shell loop over set of files stored in a current directory or specified directory?

{ 37 comments }

Q. I need to find file permission and store the same to a shell variable. How do I find out the file permission without parsing ls -l output? A. Use GNU stat command to display file or file system status. It has option to display output in specific format. Display stat for /etc/passwd file Type […]

{ 2 comments }