In [1]:
!date
In [2]:
!echo Hello
In [3]:
!ls array*
In [4]:
!ls -l array*
In [5]:
!mkdir test_dir
In [6]:
!rmdir test_dir
In [7]:
output = !date
In [8]:
print(output)
In [9]:
print(type(output))
In [10]:
print(isinstance(output, list))
In [11]:
print(len(output))
In [12]:
print(output[0])
In [13]:
print(type(output[0]))
In [14]:
output = !ls -l array*
In [15]:
print(output)
In [16]:
print(len(output))
In [17]:
print(output[0])
In [18]:
print(output[1])
In [19]:
print(output.n)
In [20]:
print(type(output.n))
In [21]:
print('\n'.join(output))
In [22]:
!ls array*
In [23]:
output = !ls array*
In [24]:
print(output)
In [25]:
print(len(output))
In [26]:
!ls array*
In [27]:
!ls array* | head
In [28]:
!ls -C array*
In [29]:
output = !ls -C array*
In [30]:
print(output)
In [31]:
print(len(output))
In [32]:
print(output[0])