Comments on: 10 Useful ‘Interview Questions and Answers’ on Linux Shell Scripting https://www.tecmint.com/interview-questions-on-shell-scripting/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Sun, 17 Feb 2019 11:18:12 +0000 hourly 1 By: Tomas Raulickis https://www.tecmint.com/interview-questions-on-shell-scripting/comment-page-1/#comment-1102401 Sun, 17 Feb 2019 11:18:12 +0000 http://www.tecmint.com/?p=7068#comment-1102401 I’ve found a little mistake in the 8th question about cut command.

In the first example, the -c option is used and it extracts characters not columns as stated.

]]>
By: Ankit https://www.tecmint.com/interview-questions-on-shell-scripting/comment-page-1/#comment-945661 Thu, 07 Dec 2017 13:28:22 +0000 http://www.tecmint.com/?p=7068#comment-945661 Can I ask shell scripting related questions on your site and if not then can you suggest me some other good sites?

]]>
By: Sudhakar amineni https://www.tecmint.com/interview-questions-on-shell-scripting/comment-page-1/#comment-926668 Wed, 25 Oct 2017 01:11:43 +0000 http://www.tecmint.com/?p=7068#comment-926668 Yes As said above by Zess, ls command is used for to see list of files.

Its wrong what you mentioned here

]]>
By: strangelove https://www.tecmint.com/interview-questions-on-shell-scripting/comment-page-1/#comment-906764 Wed, 16 Aug 2017 05:41:25 +0000 http://www.tecmint.com/?p=7068#comment-906764 In reply to Siddarth.

I’m a bit late to the party, but something more concise might be:

i=1
until [ $i -gt 6 ];
do
  printf "%d %d %d %d\n" $i $((i+1)) $((i+2)) $((i+3))
  : $((i++))
done
]]>
By: Warron French https://www.tecmint.com/interview-questions-on-shell-scripting/comment-page-1/#comment-869449 Mon, 20 Feb 2017 02:06:10 +0000 http://www.tecmint.com/?p=7068#comment-869449 In reply to zen.

The way the question was asked wasn’t very clearly stated to accomplish the use of the command ls and echo to answer it in the affirmative and explain.

The question should have been, “Is it possible to list the file and directory names of a given ‘parent directory’ using a command other than ‘ls?'”

Yes, the use of “echo *” will perform the equivalent of a plain “ls.”

]]>